Difference between revisions of "SquareRoot"
Jump to navigation
Jump to search
imported>WereWolf (Changed categories) |
imported>DragoonWraith m (make that Log, not Ln) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
Returns the square root of a number. | Returns the square root of a number. | ||
==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 ) | |||
==Example== | ==Example== |
Latest revision as of 06:25, 2 March 2008
A command for Oblivion Script Extender
Syntax:
SquareRoot [float]
or
sqrt [float]
Returns the square root of a number.
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 )
Example[edit | edit source]
set n to SquareRoot n