« HP Prime/Commands/Guides/Error Codes » : différence entre les versions

De TI-Planet Wiki
Aller à la navigation Aller à la recherche
(Page créée avec « <div style='text-align: center;'>This is a slightly-updated backup copy of the article from the old "HPWiki" of TI-Planet (that only hosted HP Prime info)</div><hr> Comman... »)
 
Aucun résumé des modifications
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 1 : Ligne 1 :
<div style='text-align: center;'>This is a slightly-updated backup copy of the article from the old "HPWiki" of TI-Planet (that only hosted HP Prime info)</div><hr>
<div style='text-align: center;'>This is a backup copy of the article from the old "HPWiki" of TI-Planet (that only hosted HP Prime info), initially authored by Iconmaster</div><hr>
Commands sometimes generate errors on certain inputs. They usually display as an error message, halting the running program, but if the error occurs in an [[Hp Prime/Commands/IFERR|IFERR]] block, the THEN clause gets ran, placing the error code in [[Hp Prime/Commands/Ans|Ans]].
Commands sometimes generate errors on certain inputs. They usually display as an error message, halting the running program, but if the error occurs in an [[Hp Prime/Commands/IFERR|IFERR]] block, the THEN clause gets ran, placing the error code in [[Hp Prime/Commands/Ans|Ans]].



Dernière version du 5 septembre 2022 à 11:23

This is a backup copy of the article from the old "HPWiki" of TI-Planet (that only hosted HP Prime info), initially authored by Iconmaster

Commands sometimes generate errors on certain inputs. They usually display as an error message, halting the running program, but if the error occurs in an IFERR block, the THEN clause gets ran, placing the error code in Ans.

The error code is an integer. To get the error message from the error code, use STRINGFROMID like so:

EXPORT error_code(x)
BEGIN
	STRINGFROMID(654+x)
END;

List of Error Codes

Code Message Additional Info
0 None Never actually raised by any commands.
1 Inexact
2 Underflow
3 Overflow
4 X/0
5 0/0
6 ∞*0
7 ∞/∞
8 √(X<0)
9 LN(0)
10 LN(X<0)
11 (X<0)!
12 atrig(X>1)
13 1^∞
14 (X<0)^∞
15 ∞^0
16 ∞^(∉Z)
17 (X<0)^(∉Z)
18 Out of bounds
19 Invalid exponent in number
20 Two decimal separators in input
21 No significant digits in number
22 Syntax Error
23 Invalid P/YR
24 Invalid input
25 Invalid I%
26 No solution
27 Many or no solutions
28 Many solutions
29 Invalid N
30 User abort
31 ∞ result
32 Insufficient statistics data
33 No payback
34 Irr0
35 Unique solution to IRR not found
36 Stack
37 Parentheses
38 Insufficient memory
39 No solution found
40 Bad Guess(es)
41 Extremum found
42 Constant function
43 Pole found
44 Gap found
45 Bad argument count
46 Variables
47 Bad argument type
48 Undefined native call
49 Circular reference
50 User error
51 Unmatch control word
52 Invalid PC
53 Illegal indirection
54 No input
55 Invalid object
56 Undefined result
57 Invalid dimension
58 Can not display
59 Probability range
60 Probability total must be equal to 1
61 Weight/Frequency is < 0
62 No definition checked in Symbolic view
63 Statistics data size not equal
64 No definition in Symbolic view
65 Inconsistent units
66 Program interrupted This is the only error message not prefixed with "Error:".
67 Function disabled
68 Recursion reached allowed limit