Replace_Top2_With_Ratio - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — EStack Arithmetic

replace_top2_with_ratio

Declaration:
void replace_top2_with_ratio (EStackIndex i )
Category(ies):
EStack Arithmetic
Description:
Replaces the top two expressions on the estack with the
internally-simplified (expression i )/(top expression).
i
Inputs:
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI-89 / TI-92 Plus
None
Differences:
See Also:
divide_top, push_divide, push_reciprocal,
replace_top_with_reciprocal
Example:
void push_log_gen (EStackIndex i, EStackIndex j)
/* Pushes onto the estack the logarithm to the base indexed by j of
expression indexed by i.
*/
{
Access_AMS_Global_Variables;
if (j)
{
push_ln (i);
i = top_estack;
push_ln (j);
replace_top2_with_ratio (i);
}
else
push_log10 (i);
}
TI-89 / TI-92 Plus Developer Guide
— 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.
Not for Distribution
509
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents