Push_Poly_Qr - Texas Instruments TI-89 Developer's Manual

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

Advertisement

Appendix A: System Routines — Math

push_poly_qr

Declaration:
EStackIndex push_poly_qr (EStackIndex i , EStackIndex j ,
EStackIndex gv , Int choice )
Category(ies):
Math
Description:
According to choice , pushes onto the estack the remainder, and/or then the
quotient of polynomial i divided by polynomial j , with respect to gv . Returns
the index of the first expression pushed.
Top-level calls should be made via the macros
PUSH_POLY_QUOTIENT, PUSH_POLY_REMAINDER, or
PUSH_POLY_REMAINDER_THEN_QUOTNT.
i , j
Inputs:
gv
choice — One of PUSH_QUOTIENT, PUSH_REMAINDER, or
Outputs:
The index of the first expression pushed.
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
Example:
/* Pushes a tagged integer 2, then the polynomial x + 1, then returns
the index of the pushed tagged integer 2.
*/
push_quantum (2u);
exponent = top_estack;
push_quantum (8u);
replace_top2_with_pow (exponent);
add1_to_top ();
i = top_estack;
/* i -> x^2 + 1 */
push_quantum (8u);
subtract1_from_top ();
j = top_estack;
/* j -> x + 1 */
push_quantum (8u);
gv = top_estack;
/* gv -> variable x */
push_poly_qr (i, j, gv, PUSH_BOTH);
TI-89 / TI-92 Plus Developer Guide
— Indices of the top tags of internally-simplified polynomials,
generalized to allow non-negative fractional exponents.
— Indexes the top tag of an internally-simplified variable or
kernel.
PUSH_BOTH.
/* Push variable x */
/* top_estack -> x^2 */
/* Push variable x */
Not for Distribution
813
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