Push_Gcd_Numbers - Texas Instruments TI-89 Developer's Manual

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

Advertisement

490

push_gcd_numbers

Declaration:
void push_gcd_numbers (EStackIndex i , EStackIndex j )
Category(ies):
EStack Arithmetic
Description:
Pushes the gcd of the expressions indexed by i and j onto the estack.
Pushes 1.0 if either argument is a Float for which
is_Float_exact_whole_number ( . . . ) returns FALSE.
NOTE: gcd(0, k) = abs(k)
Inputs:
i , j — Indexes to the numeric tag of tagged numbers.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
push_gcd_then_cofactors
Examples:
push_reciprocal_of_quantum (2u);
fraction_half = top_estack;
push_Float (2.0);
float2 = top_estack;
push_gcd_numbers (fraction_half, float2);
push_negate_quantum_as_negint (2u);
push_gcd_numbers (Integer0Index, top_estack);
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — EStack Arithmetic
gcd(m/n, p/q) = gcd(m, n)/lcm(n, q)
gcd (L0, 0) = gcd (+0, 0) = gcd (0, L0) = gcd (0, +0) = +0
/* Pushes 1/2 */
Not for Distribution
/* Pushes 2 */
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