EasyManua.ls Logo

Texas Instruments TI-89 - Replace_Top2_With_Sum

Texas Instruments TI-89
1398 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
510
Appendix A: System Routines — EStack Arithmetic
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
replace_top2_with_sum
Declaration:
void
replace_top2_with_sum
(EStackIndex
i
)
Category(ies):
EStack Arithmetic
Description:
Replaces the top two expressions of the estack with their
internally-simplified sum. 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
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.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_sum, push_difference, 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:
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);
}

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals