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