Difference between revisions of "Log"
Jump to navigation
Jump to search
imported>DragoonWraith (OBSE) |
imported>DragoonWraith (note on Nth Root) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
log [float] | log [float] | ||
Returns the logarithm | Returns the natural logarithm of a number. | ||
==Example== | ==Example== | ||
set n to log n | set n to log n | ||
==Nth Root== | |||
OBSE does not provide an Nth Root function, however, the following code can get the Nth Root, using [[Exp]] and Log. | |||
set NthRootOfX to ( log x )/N | |||
set NthRootOfX to ( exp NthRootOfX ) | |||
==See Also== | ==See Also== | ||
*[[log10]] | |||
*[[exp]] | *[[exp]] | ||
[[Category: OBSE | [[Category: Functions]] | ||
[[Category: Functions (OBSE)]] | |||
[[Category:Math_Functions]] | |||
[[Category:Math_Functions (OBSE)]] |
Latest revision as of 06:26, 2 March 2008
A command for Oblivion Script Extender
Syntax:
log [float]
Returns the natural logarithm of a number.
Example[edit | edit source]
set n to log n
Nth Root[edit | edit source]
OBSE does not provide an Nth Root function, however, the following code can get the Nth Root, using Exp and Log.
set NthRootOfX to ( log x )/N set NthRootOfX to ( exp NthRootOfX )