EasyManuals Logo

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #307 background imageLoading...
Page #307 background image
Appendix A: System Routines — Algebra Utilities
265
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
main_gen_var_index
Declaration:
EStackIndex
main_gen_var_index
(EStackIndex
i
)
Category(ies):
Algebra Utilities
Description:
Returns the main generalized variable of any internally-simplified algebraic
expression indexed by
i
.
A generalized variable can be a variable, the base of a noninteger power,
or a kernel, meaning any other irrational subexpression.
More specifically, the rules are:
main_gen_var
(sum) ->
main_gen_var
(leadTerm)
main_gen_var
(product) ->
main_gen_var
(leadFactor)
main_gen_var
(integerPower) ->
main_gen_var
(base)
Otherwise
main_gen_var
(expression) -> expression.
Inputs:
i
Index of the top tag of an internally-simplified algebraic expression.
Outputs:
Returns the main generalized variable of any internally-simplified algebraic
expression indexed by
i
.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: next_var_or_kernel_index
Example:
main_gen_var (sin(x)^2 * y + ln(z))
. Returns sin(x).
main_gen_var (3^(1/5) + 2)
. Returns 3.
main_gen_var ((x + y)^(1/2) + x)
. Returns x + y.
void push_var_kern_tail (EStackIndex i)
/* i indexes an expression. Pushes onto the estack an END_TAG terminated list
of its generalized variables, with the most main deepest.
*/
{ EStackIndex vi = main_gen_var_index (i);
push_quantum (END_TAG);
while (vi) { push_expression (vi);
vi = next_var_or_kernel_index (i, vi);
}
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals