Hmm... not very well then. cos(90) according to your parser is like -.447.... when the answer is actually 0. Same with sin.Quote:
Originally Posted by jverkoey
Printable View
Hmm... not very well then. cos(90) according to your parser is like -.447.... when the answer is actually 0. Same with sin.Quote:
Originally Posted by jverkoey
Radians... ;)
Bah... how many people actually want it in radians tho?
So you can use pi, then?
Do you just type in "pi," or what?
Um, I could define pi as a variable I suppose.
Here, I'll put some variables in there that you guys can mess with.
There we go:Quote:
I have defined a few variables for you to mess around with now: x, y, pi (const at 3.14159265), and array (a 25 value array).
Example: sin(pi) or array[3]=x
Variable values are kept between operations. So if you do array[3]=5 in one statement, the next time you call array[3], it will still be 5, assuming no one else changed it.
x
y
array[25]
pi (const)