Program:
«
"Key in radius"
""
INPUT
OBJ
3 ^
4 * 3 / ‡ * NUM
»
`OVSPH ‰
Example:
Execute VSPH to calculate the volume of a sphere of radius 2.5.
J %VSPH%
Key in the radius and continue program execution. ...............................
2.5 `
To include INPUT options:
Use a list (with {} delimiters) as the command-line argument for INPUT. The list can contain one more of
!
the following:
Command-line string (with "" delimiters).
"
Cursor position as a real number or as a list containing two real numbers.
"
Operating options ALG, Œ, or V.
"
In its general form, the level 1 argument for INPUT is a list that specifies the content and interpretation of the
command line. The list can contain one or more of the following parameters in any order:
Comments:
Specifies the prompt string.
Specifies the command-line string.
In this case, the command line will be
empty.
Displays the prompt, puts the cursor at
the start of the command line, and
suspends the program for data input
(the radius of the sphere).
Converts the result string into its
component object- a real number.
Cubes the radius.
Completes the calculation.
Stores the program in VSPH.
RPL Programming 1-39