
-----------------------------------
mattsyv
Thu Jan 26, 2006 1:08 pm

i need help with square roots
-----------------------------------
ok i have this loop i dont no how to square it can u plz help me



-----------------------------------
do_pete
Thu Jan 26, 2006 1:28 pm


-----------------------------------
If you want to square a number you would go like this
number := number ** 2
If you want the square root you would go:
number := sqrt (number)
or
number := number ** 0.5

-----------------------------------
blaster009
Thu Jan 26, 2006 8:12 pm


-----------------------------------
And if you need to go further (cubic roots, quartic roots etc), just multiply by the equivalent fraction.


final := number ** (1/2) % Square root
final := number ** (1/3) % Cubic root
final := number ** (1/4) % Quartic root


Etc...
