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