SU.Math.log
SU Library: ab Version 0.7.0
Last updated
SU Library: ab Version 0.7.0
Gibt den natürlichen Logarithmus (Basis e) oder den Logarithmus zu einer optionalen Basis zurück.
value: number – Positive reelle Zahl (größer als 0)
base: number (optional) – Basis des Logarithmus (Standard: e)
number – Der Logarithmus von value
-inf (SU.Math.isInf): Bei Eingabe von 0
nan (not a number, SU.Math.isNan): Bei negativen Eingaben
local naturalLog = SU.Math.log(2.71828) -- liefert ca. 1.0
local customLog = SU.Math.log(8, 2) -- liefert ca. 3.0Last updated