Appendix A: System Routines — Math
835
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_square
Declaration:
void
push_square
(EStackIndex
i
)
Category(ies):
Math
Description:
Pushes onto the estack the internally-simplified value of the square of the
expression indexed by
i
.
Inputs:
i
— Index to the top tag of an internally-simplified algebraic expression,
algebraic 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_exponentiate, raise_to_top, push_sqrt, push_reciprocal,
replace_top2_with_pow, replace_top_with_reciprocal,
push_dot_exponentiate
Example:
void push_quadratic_discriminant (EStackIndex a, EStackIndex b, EStackIndex c)
/* Pushes onto the estack b^2 - 4 a c. */
{ Access_AMS_Global_Variables;
EStackIndex old_top = top_estack;
push_negate_quantum_as_negint (4u);
times_top (a);
times_top (c);
a = top_estack;
push_square (b);
replace_top2_with_sum (a);
}