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 byjverkoey

Printable View

- 06-17-2005oberQuote:

Originally Posted by**jverkoey**

- 06-17-2005Zach L.
Radians... ;)

- 06-17-2005ober
Bah... how many people actually want it in radians tho?

- 06-17-2005gcn_zelda
So you can use pi, then?

Do you just type in "pi," or what? - 06-17-2005jverkoey
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-2005jverkoeyQuote:

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)