Fslssm) – HP 48g Graphing Calculator User Manual
Page 413
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".
■ Press
fCANCEL).
Enter a program that takes a radius value from the stack
and calculates the volume of a sphere of radius r using
V = -7rr’’
o
Step 1:
If you were going to calculate the volume manually after
entering the radius on the stack, you might press these keys:
3 O O® © 4 0 3 0 QSHM)
Enter the same keystrokes in a program.
starts a
new line.)
^NUM
3 O Q® ® 4 © 3 0
fSlSSM)
Step 2:
Put the program on the stack.
iENTER]
1
:
Step 3:
Store the program in variable VOL. Then put a radius of 4
on the stack and run the VOL program.
1:
£68.082573107
CD
(©(hold) VOL (release)
fSTO]
4 (VAR) VOL
Replace the program from the previous example with one
that’s easier to read. Enter a program that uses a local
variable structure to calculate the volume of a sphere.
The program is
-J-NLi
(You need to include -^NUM because
tt
causes a symbolic
result. Try the program with and without the -^NUM
command.)
29
Programming the HP 48 29-7