EasyManua.ls Logo

Texas Instruments TI-89 - Push_Independent_Terms

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...
280
Appendix A: System Routines — Algebra Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_independent_terms
Declaration:
void
push_independent_terms
(EStackIndex
i
, EStackIndex
var
)
Category(ies):
Algebra Utilities
Description:
Pushes onto the estack the sum of all syntactic terms of the expression
indexed by
i
that are independent of the variable or kernel indexed by
var
.
If there are no independent terms, pushes Float0 if IS_ARITH_APPROX is
true and Integer0 if IS_ARITH_APPROX is false.
Inputs:
i
Index of the top tag of an internally-simplified algebraic
expression.
var
Index of the top tag of an internally-simplified variable or kernel.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
push_quantum (PI_TAG);
k = top_estack;
push_quantum (8u); /* Push variable x */
replace_top2_with_sum (k);
k = top_estack; /* k -> x + pi */
push_quantum (9u);
j = top_estack; /* Push variable y */
push_ln (j); /* Push ln(y); */
replace_top2_with_sum(j); /* top_estack -> ln(y) + y */
replace_top2_with_sum(k);
k = top_estack; /* top_estack -> x + ln(y) + y + pi */
push_quantum (9u); /* Push y */
push_independent_terms (k, top_estack); /* Pushes x + pi */

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals