EasyManua.ls Logo

Texas Instruments TI-89 - Push_Mod

Texas Instruments TI-89
1398 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
806
Appendix A: System Routines — Math
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_mod
Declaration:
void
push_mod
(EStackIndex
i
, EStackIndex
j
)
Category(ies):
Math
Description:
Pushes onto the estack the expression indexed by
i
numeric-module the
expression indexed by
j
. For positive
j
this is the non-negative rather than
centered residue. As suggested by Graham, Knuth & Patashnik, “Concrete
Mathematics”, Addison-Wesley, section 3.4: mod(x,0) simplifies to x to
preserve the property that mod(x, y) always differs from x by a multiple of
y.
Inputs:
i
,
j
Indices of the top tags of internally-simplified algebraic
expressions or aggregates thereof.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_integer_quotient, push_integer_part, push_floor, push_ceiling,
push_integer_remainder
Example:
push_quantum_as_nonnegative_int (3u);
j = top_estack;
push_negate_quantum_as_negint (5u);
push_mod (top_estack, j); /* Pushes a tagged integer 2 */

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals