PDA

View Full Version : [Calc] Doing math in programs



WMD54
10-12-2008, 10:51 PM
ok, this is gonna be the last official guide i write then i'm gonna start posting programs. (i know right, :WooT: "it's over! i don't have to read any more of these stupid things!" don't worry, i feel your pain, remember that you may be reading these but I wrote these) plus, this one is quick.

In this guide i will show you how to make your calculator do your math for you. Basically all you do is enter the equation just like you would outside of the program. the benefit here is that you only have to type it in once. Usually, you use the Input command to get the numbers that you will be using in the function, because they will change from problem to problem. so, let's assume that you have already gotten variables A, B and C and the formula is (.5AxB)/C. You just enter that in your calculator. No commands, nothing.

(.5AxB)/C->D
remember that the -> is the STO> button on your calculator. you would want to store the answer in a new variable so you can access it later in your program.

well, that wraps up this guide and therefore my series of guides. yay!

~Written by WMD54
please do not repost without permission