Appendix A: System Routines — Math
817
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_randpoly
Declaration:
void
push_randpoly
(EStackIndex
var_idx
, EStackIndex
order_idx
)
Category(ies):
Math
Description:
Pushes onto the estack a polynomial of the specified order with random
integer coefficients between -9 and 9 and with the leading coefficient
nonzero. The caller must specify an independent variable.
Inputs:
var_idx
— Indexes the name of the independent variable to use in the
output polynomial.
order_idx
— Indexes the order of the output polynomial.
Outputs:
None
Assumptions:
None
Side Effects:
May expand expression stack, cause heap compression, or throw an error.
Availability:
On AMS 1.05 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also: push_rand, push_randmat, push_randnorm
Example:
This example pushes a fourth order polynomial in “z” on the estack.
BYTE zName = ENCODE_LETTER('z'); /* single letter variables are stored specially */
push_ushort_to_integer( 4 ); /* 4th order polynomial */
push_randpoly( zName, top_estack );