Appendix A: System Routines — EStack Arithmetic
481
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
is_pos_int_and_eq_quantum
Declaration:
Boolean
is_pos_int_and_eq_quantum
(IndexConstQuantum
i
,
Quantum
q
)
Category(ies):
EStack Arithmetic
Description:
Determines whether the expression indexed by
i
is a positive big integer
whose magnitude equals
q
.
Inputs:
i
— Index of an expression.
q
— Nonzero quantum.
Outputs:
Returns TRUE if the expression indexed by
i
is a positive big integer whose
magnitude equals
q
. Otherwise, returns FALSE.
Assumptions:
i
points to the top tag of an expression, and
q
is nonzero.
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
push_quantum_as_nonnegative_int (5u);
is_pos_int_and_eq_quantum (top_estack,5u);
/* Returns TRUE */
push_Float (5.0);
is_pos_int_and_eq_quantum (top_estack,5u);
/* Returns FALSE */