Hmm... not very well then. cos(90) according to your parser is like -.447.... when the answer is actually 0. Same with sin.

06-17-2005

Zach L.

Radians... ;)

06-17-2005

ober

Bah... how many people actually want it in radians tho?

06-17-2005

gcn_zelda

So you can use pi, then?

Do you just type in "pi," or what?

06-17-2005

jverkoey

Um, I could define pi as a variable I suppose.

Here, I'll put some variables in there that you guys can mess with.

06-17-2005

jverkoey

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.