SquareRoot

Revision as of 07:25, 2 March 2008 by imported>DragoonWraith (make that Log, not Ln)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A command for Oblivion Script Extender

Syntax:

SquareRoot [float]

or

sqrt [float]

Returns the square root of a number.

Nth RootEdit

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 )

ExampleEdit

set n to SquareRoot n