Texas Instruments TI89 Developer Guide - Page 503
EStack Arithmetic, push_sum, replace_top2_with_sum, push_difference
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 503 highlights
Appendix A: System Routines - EStack Arithmetic 461 add_to_top Declaration: void add_to_top (EStackIndex i) Category(ies): EStack Arithmetic Description: Replaces the expression on the top of the estack with the internally-simplified sum of the top plus the expression indexed by i. 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 an internally-simplified algebraic expression, algebraic comparison, or aggregate thereof. Outputs: None Assumptions: i and top_estack point to the top tag of internally-simplified algebraic expressions, algebraic comparisons, or aggregates thereof. Side Effects: May cause heap compression or throw an error. Availability: On AMS 2.02 and higher. TI-89 / TI-92 Plus Differences: None See Also: push_sum, replace_top2_with_sum, push_difference, subtract_from_top, replace_top2_with_difference, add1_to_top, subtract1_from_top, push_arg_plus_1, push_arg_minus_1 Example: void add1_to_top (void) /* Add 1 or 1.0 the top expression, depending on global computation_mode. */ { add_to_top (IS_ARITH_APPROX ? Float1Index : Integer1Index); } TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001