512
Appendix A: System Routines — EStack Arithmetic
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
subtract1_from_top
Declaration:
void
subtract1_from_top
(void)
Category(ies):
EStack Arithmetic
Description:
Replaces the top expression of the estack with the internally-simplified
difference of the top minus 1.0 if IS_ARITH_APPROX, and the top minus 1
otherwise. If the top of the estack is a square matrix, the one is subtracted
only from the diagonal of the matrix.
Inputs:
None
Outputs:
None
Assumptions:
The top of the estack is an internally-simplified algebraic expression,
algebraic comparison, or aggregate thereof.
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_sum, replace_top2_with_sum, add_to_top, push_difference,
replace_top2_with_difference, add1_to_top, subtract_from_top,
push_arg_plus_1, push_arg_minus_1
Example:
push_Float (5.7);
subtract1_from_top (); /* pushes 4.7 */