Errors And Error Trapping - HP 50g User Manual

Graphing calculator
Hide thumbs Also See for 50g:
Table of Contents

Advertisement

and store it in variable @GLIS4.
Check out that the program call
produces the list {0.5 1. 1.5 2. 2.5}.
To see step-by-step operation use the program DBUG for a short list, for
example:
J1 # 1.5 # 0.5 `
['] @GLIS4 `
„°LL @) @ RUN@ @@DBG@
Use @SST @ to step into the program and see the detailed operation of each
command.

Errors and error trapping

The functions of the PRG/ERROR sub-menu provide ways to manipulate errors in
the calculator, and trap errors in programs. The PRG/ERROR sub-menu,
available through „°LL@) E RROR@ , contains the following functions
and sub-menus:
DOERR
This function executes an user-define error, thus causing the calculator to behave
as if that particular error has occurred. The function can take as argument
either an integer number, a binary integer number, an error message, or the
number zero (0). For example, in RPN mode, entering 5` @DOERR,
produces the following error message: Error: Memory Clear
If you enter #11h ` @DOERR, produces the following message: Error:
Undefined FPTR Name
0.5 ` 2.5 ` 0.5 ` @GLIS4
Enter parameters 1 1.5 0.5
Enter the program name in level 1
Start the debugger.
Page 21-64

Advertisement

Table of Contents
loading

Table of Contents