Difference between revisions of "Square Root"

Jump to navigation Jump to search
84 bytes added ,  06:22, 2 March 2008
linking to OBSE's sqrt
imported>Proweler
imported>DragoonWraith
(linking to OBSE's sqrt)
Line 1: Line 1:
Oblivion does '''not''' include a square root function. Therefore one must use this code to get the square root of a number.
Oblivion does '''not''' include a square root function. The [[:Category: Oblivion Script Extender|Oblivion Script Extender]] does - you can find out about it at [[Sqrt]]. Without OBSE, you must use this code:


This uses Newton-Raphson approximation, and gives accuracy to two decimal places for numbers less than or equal to 100. Adding more steps to it increases accuracy very quickly.
This uses Newton-Raphson approximation, and gives accuracy to two decimal places for numbers less than or equal to 100. Adding more steps to it increases accuracy very quickly.

Navigation menu