Logarithm: Difference between revisions

m
Fix definition and minor formatting, add Related section
(Updated and revisited the page)
m (Fix definition and minor formatting, add Related section)
 
Line 2: Line 2:
|image=Logarithm.png
|image=Logarithm.png
|type=s
|type=s
|folder=math
|folder=Math
|input1={{Port|n}}
|input1={{Port|n}}
|input2={{Port|n|Base}}
|input2={{Port|n|Base}}
|output1={{Port|n|Logarithm}}
|output1={{Port|n|Logarithm}}
}}
}}
Outputs the logarithm of a [[number]] by a given base.
Outputs the logarithm of a [[number]] by a given base.


Logarithm is a number such that <code>Base [[Power|^]] Exponent = Base</code>
Logarithm is a number such that Base to the [[power]] of Logarithm equates to Number.


== Notes ==
== Notes ==
* Logarithm is used as an inverse function for the function [[Power]].
* Logarithm is used as an inverse function for the function [[Power]].
* Base defaults to [https://en.wikipedia.org/wiki/E_(mathematical_constant) ''e''] if unwired.
* Base defaults to [https://en.wikipedia.org/wiki/E_(mathematical_constant) ''e''] if unwired.


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


{{Image|Logarithm example.jpg|Example}}
{{Image|Logarithm example.jpg|Example}}
== Related ==
* [[Power]]


[[Category:Blocks]]
[[Category:Blocks]]