Re: 32s program help Message #2 Posted by Jeff O. on 3 June 2005, 1:14 p.m., in response to message #1 by jack dauler
Step by step, the following will do what you want.
First, do a master clear:
press the gold shift key, then the back arrow key. This will give you four choices in the display. Press the key under the little arrow under the ALL label (the fourth key from the left, y^x)
Now enter the program:
press shift, then R/S. This executes the shifted PRGM function, to put the calculator in program entry mode. The display should read PRGM TOP
press shift, then 4. This executes the shifted LBL/RTN function to bring up a menu of choices in the display. The display should read LBL RTN PSE
press the square root x key under the little arrow under LBL. The display should read 001 LBL _ (with a little A..Z below that.)
press the square root x key. This chooses the letter A for the program label. You could press any other key that has a letter to its lower right to choose that letter for your label. Assuming you pressed the square root key, the display should read A01 LBL A
press shift, then 7. This executes the shifted P<->RECT function to bring up a menu of choices in the display. The display should read y,x->theta,r theta,r->y,x. (I have substituted "theta" for the greek letter that is actually displayed.) press the square root x key to choose the y,x->theta,r function. The display should read A02 y,x->theta,r
press 2, the display should read A03 2_
press X (the multiplication key), the display should read A04 X
press shift, then 4 to execute the shifted LBL/RTN function. The display should read LBL RTN PSE
press the LN key under the little arrow under RTN to choose the RTN function. The display should read A05 RTN.
press shift, then R/S. (You may alternatively just press the C key.) The display should return to normal. If you followed the above steps exactly, it should read 0.0000 (may vary, depending on your display mode).
To use the program, key in your y value, press enter, then key in your x value. Then press XEQ. The display should read XEQ _, with the little A..Z below that. Press the square root key to choose label A, or the corresponding key if you chose another letter. The program will run and display your answer.
There are a number of methodologies for programming the routine you desired. For example, it could square the x value, then square the y value, then add them, then take the square root. I chose to use the built in polar to rectangular conversion function since it performs those steps in one function and one program step rather than requiring several program steps. Program memory is very limited on the 32S, so it is usually best to use as few steps as possible. My program is 5 steps, 7.5 bytes. A program using the alternative method would be 9 steps, 13.5 bytes.
Hope the above is clear, if not, ask for more help or clarification.
Edited: 4 June 2005, 6:37 p.m.
|