In the operators section of the blocks, there should be a block at the bottom that looks like:
([sqrt] of ( ))[/blocks]
That's the square root function.
Through the drop down menu of the same block you can get sine, cosine, absolute value, and more.
Last edited by Kileymeister (2011-01-28 21:30:16)
Offline
Kileymeister is correct, but on another note, the method all computers use (I believe) to find the square root is a form of "guess and check". For example, say they're using this formula:
(Square root of n) = (n+(x^2) )/2x
The computer would do this:
Square of 100 is...
1st Guess: 2
(100+(2^2) )/(2*2)=26
2nd Guess: 26
(100+(26^2) )/(2*26)=14.92
3rd Guess: 14.92
(100+(14.92^2) )/(2*14.92)=10.81
4th Guess: 10.81
(100+(10.81^2) )/(2*10.81)=10.03
etc.
The more guesses the computer gives it, the more accurate it gets.
Anyway, because of this, the square root tool can be pretty expensive (in terms of computer speed), but that shouldn't be a problem unless you used it a ton of times.
Why did I bother posting this? Because I found it interesting
Last edited by MoreGamesNow (2011-03-31 20:42:02)
Offline
yeah you people are right
Offline