Appendix A: System Routines — Math
761
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_abs
Declaration:
void
push_abs
(EStackIndex
k
)
Category(ies):
Math
Description:
Pushes onto the estack the internally-simplified absolute value of the
expression indexed by
k
.
For example, if
k
indexes an IM_RE_TAG, pushes the square root of the
sum of the squares of the two expressions immediately below
k
.
Inputs:
k
— Indexes the top tag of an internally-simplified algebraic expression,
comparison, or aggregate thereof.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_sign
Example:
push_quantum_as_nonnegative_int (3u);
real_part = top_estack;
push_quantum_as_nonnegative_int (4u);
replace_top2_with_imre (real_part); /* Pushes an IM_RE_TAG */
push_abs (top_estack); /* Pushes a tagged integer 5 */