HP (Hewlett-Packard) 35s Calculator User Manual


 
Simple Programming 13-15
To cancel the INPUT prompt, press . The current value for the variable
remains in the X–register. If you press
to resume the program, the
canceled INPUT prompt is repeated. If you press
during digit entry, it
clears the number to zero. Press
again to cancel the INPUT prompt.
Using VIEW for Displaying Data
The programmed VIEW instruction ( variable ) stops a running program
and displays and identifies the contents of the given variable, such as


This is a display only, and does not copy the number to the X–register. If Fraction–
display mode is active, the value is displayed as a fraction.
Pressing copies this number to the X–register.
If the number is wider than 14 characters, such as binary, complex, vector
numbers, pressing
Ö and Õ displays the rest.
Pressing
(or ) erases the VIEW display and shows the X–register.
Pressing
clears the contents of the displayed variable.
Press to continue the program.
If you don't want the program to stop, see "Displaying Information without
Stopping" below.
For example, see the program for "Normal and Inverse–Normal Distributions" in
chapter 16. Lines T015 and T016 at the end of the T routine display the result for X.
Note also that this VIEW instruction in this program is preceded by a RCL
instruction. The RCL instruction is not necessary, but it is convenient because it brings
the VIEWed variable to the X–register, making it available for manual calculations.
(Pressing
while viewing a VIEW display would have the same effect.) The
other application programs in chapters 16 and 17 also ensure that the VIEWed
variable is in the X–register as well.