Texas Instruments TI89 Developer Guide - Page 307
next_var_or_kernel_index, main_gen_var
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 307 highlights
Appendix A: System Routines - Algebra Utilities 265 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); } } TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/307.png)