Logarithm

Revision as of 06:03, 21 May 2024 by -u ndefined- (talk | contribs) (Fix definition and minor formatting, add Related section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Outputs the logarithm of a number by a given base.

Logarithm
Logarithm.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Number
Base
Outputs Logarithm

Logarithm is a number such that Base to the power of Logarithm equates to Number.

Notes

  • Logarithm is used as an inverse function for the function Power.
  • Base defaults to e if unwired.

Examples

You can compute a number's length by plugging 10 into the base, then flooring it and adding 1.

 

Related