Example:
Program Using Equation.
Write a program that uses an equation to solve the "Ideal Gas Law."
Keys:
(In RPN mode)
H
(1)
P
V
N
R
T
Checksum and length of program: DF52 21
Now calculate the change in pressure of the carbon dioxide if its temperature drops
by 10 °C from the previous example.
15-4
Solving and Integrating Programs
value
value
Display:
Stores .005 in N; prompts for R.
Stores .0821 in R; prompts for T.
Calculates T.
Stores 297.1 in T; solves for P.
Pressure is 0.0610 atm.
Description:
Selects Program–entry mode.
Moves program pointer to top of
the list of programs.
Labels the program.
Enables equation prompting.
Evaluates the equation, clearing
flag 11. (Checksum and length:
EDC8 9).
Ends the program.
Cancels Program–entry mode.