Replace_Top2_With_Difference - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — EStack Arithmetic

replace_top2_with_difference

Declaration:
void replace_top2_with_difference (EStackIndex i )
Category(ies):
EStack Arithmetic
Description:
Replaces the top two expressions of the estack with the
internally-simplified difference of expression i minus the top expression. If
one operand is a scalar and the other is a square matrix, the scalar is
distributed only over the diagonal of the matrix.
Inputs:
i
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
replace_top2_with_sum, push_sum, subtract_from_top,
replace_top2_with_difference, push_arg_plus_1, add1_to_top,
subtract1_from_top, add_to_top, push_arg_minus_1
Example:
push_quantum_as_nonnegative_int (3u);
coefficient = top_estack;
push_estack (8u);
replace_top2_with_prod (coefficient);
minuend = top_estack;
push_estack (8u);
replace_top2_with_difference (minuend);
TI-89 / TI-92 Plus Developer Guide
— Index to the top tag of the deeper of the top two expressions of the
estack. These top two expressions are internally-simplified
algebraic expressions, algebraic comparisons, or aggregates
thereof.
/* Push variable x */
/* 3 * x
*/
/* Push variable x */
Not for Distribution
/* top_estack -> 2 * x
507
*/
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents