EasyManuals Logo

HP 48GII User Manual

HP 48GII
653 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #60 background imageLoading...
Page #60 background image
1-34 RPL Programming
Program: Comments:
"!
67<KK!
Y;6E<!
3!
K<2<B:!
\'!
<=4!
:;<=!
I4L=<I!3!46D2!
3!7K<<J<!
<=4
Starts the trap-clause.
The WHILE structure repeats
indefinitely, adding the vectors
and arrays to the statistics matrix
until an error occurs.
Starts the error clause. If an error
occurs in the WHILE structure,
displays the message DONE in the
status area.
»
Ends the error structure.
The IFERR … THEN … ELSE … END Structure
The syntax for this structure is
!"!67<KK!trap-clause
! ! !:;<=!error-clause!<ED<!normal-clause!<=4!!1!
The commands in the error-clause are executed only if an error is generated during execution of the trap-clause.
If an error occurs in the trap-clause, the error is ignored, the remainder of the trap-clause is skipped, and
program execution jumps to the error-clause. If no errors occur in the trap-clause, execution jumps to the
normal-clause at the completion of the trap-clause.
To enter IFERR … THEN … ELSE … END in a program:
! Press !°LL %ERROR% @%IFERR%
Example: The following program prompts for two numbers, then adds them. If only one number is supplied,
the program displays an error message and prompts again.
Program: Comments:
"!
4L!
Ir<P!6=!$!B=4!%I!I!
I!
6=25:!LS_#!
5=:6E!
67<KK!
'!!
:;<=!
<KKM!Q!46D2!
H!YB6:!
8!
<ED<!
3!
<=4!
<=4
Begins the main loop.
Prompts for two numbers.
Starts the loop test clause.
The error trap contains only the + command.
If an error occurs, recalls and displays the
:kk!7)s!Bjmno)GpZ message for 2 seconds,
then puts 0 (false) on the stack for the main loop.
If no error occurs, puts 1(true) on the stack for the
main loop.
Ends the error trap.
Ends the main loop. If the error trap left 0 (false) on
the stack, the main loop repeats — otherwise, the
program ends.
»

Table of Contents

Other manuals for HP 48GII

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 48GII and is the answer not in the manual?

HP 48GII Specifications

General IconGeneral
Battery typeCR2032
TypeScientific
Form factorPocket
Weight and Dimensions IconWeight and Dimensions
Weight220 g
Dimensions (WxDxH)184 x 87 x 23.5 mm

Related product manuals