Download Print this page

HP 35s User Manual page 3

Scientific calculator - writing a simple program
Hide thumbs Also See for HP 35s:

Advertisement

hp calculators
HP 35s Writing a Simple Program
The program will look as shown in Figures 2 through 4 below.
Each line of the program begins with the letter of the label, and then has a four-digit line number. The rest
of the program line is a function or a program instruction. The program instructions are LBL A and RTN, the
functions are x ², π and ×.
To use the program, it is necessary to move out of program mode, and to return to the beginning of the
program. Then a radius is typed and the ¥ key is pressed. The HP 35s executes (or runs) the program.
To calculate the area of a circle with radius 5, make sure RPN mode is set, then press:
º£¹Ô5¥
Answer:
The area of a circle with radius 5 cm is just over 78.54 square cm.
To calculate the area of another circle with a different radius, it is enough to type the new radius and press
¥ again. The program works like a new function, executed by means of the ¥ key instead of a key
with the name of one of the functions built into the HP 35s.
Example 2: Write a program in algebraic mode to calculate the area of a circle, given its radius r.
Solution:
In algebraic mode, the program looks very similar, but with the calculation keys typed in algebraic order.
The HP 35s does not allow more than one program to have the same label, so the algebraic program
below is given the label B.
Go to the beginning of program memory by typing rËË and set program mode by typing
º£. Then type the algebraic mode program:
ºÓB94º=<ÖϸjϹÔ
To get B press the r key; it has a small B to its lower right. The program lines are as listed below.
hp calculators
Figure 2
Figure 3
Figure 4
- 3 -
Figure 5
HP 35s Writing a Simple Program - Version 1.0

Advertisement

loading