HP 50g User's Reference Manual
Download Advanced user's reference manual of HP 48gII Calculator for Free or View it Online on All-Guides.com.
Brand: HP
Category: Calculator
Type: Advanced user's reference manual
Model: HP 48gII , HP 49g+ , HP 50G
Pages: 693
3-76 Full Command and Function Reference
ERR0
Type: Command
Description: Clear Last Error Number Command: Clears the last error number so that a subsequent execution
of ERRN returns # 0h, and clears the last error message.
Access: !°LL
ERROR ERR
0 ( °is the left-shift of the Nkey).
Input/Output: None
See also: DOERR, ERRM, ERRN
ERRM
Type: Command
Description: Error Message Command: Returns a string containing the error message of the most recent
calculator error.
ERRM returns the string for an error generated by DOERR. If the argument to DOERR was 0,
the string returned by ERRM is ‘Interrupted’.
Access: !°LL
ERROR ERRM
( °is the left-shift of the Nkey).
Input/Output:
Level 1/Argument 1 Level 1/Item 1
→
“error message”
Example: The program
« IFERR + THEN ERRM END »
returns "Bad Argument Type" to level 1
if improper arguments (for example, a complex number and a binary integer) are in levels 1 and 2.
See also: DOERR, ERRN, ERR0
ERRN
Type: Command
Description: Error Number Command: Returns the error number of the most recent calculator error.
If the most recent error was generated by DOERR with a string argument, ERRN returns
#70000h. If the most recent error was generated by DOERR with a binary integer argument,
ERRN returns that binary integer. (If the most recent error was generated by DOERR with a real
number argument, ERRN returns the binary integer conversion of the real number.) The only
exceptions to these rules are 0 DOERR and #0 DOERR, both of which set ERRN to #31Fh and
ERRM to ‘Interrupted’.
Access: !°LL
ERROR ERRN
( °is the left-shift of the Nkey).
Input/Output:
Level 1/Argument 1 Level 1/Item 1
→
#nerror
Example: The program
« IFERR + THEN ERRN END »
returns # 202h to level 1 if improper
arguments (for example, a complex number and a binary integer) are in levels 1 and 2.
See also: DOERR, ERRM, ERR0
EULER
Type: Function
Description: For a given integer, returns the number of integers less than the integer that are co-prime with the
integer. (Euler’s Φ function.)
Access: !Þ
INTEGER
Input: A non-negative integer, or an expression that evaluates to a non-negative integer.
Output: The number of positive integers, less than, and co-prime with, the integer.
Flags: Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag –3 clear).