EasyManua.ls Logo

Texas Instruments TI-89 - Push_Negate_Quantum_As_Negint

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...
494
Appendix A: System Routines — EStack Arithmetic
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_negate_quantum_as_negint
Declaration:
void
push_negate_quantum_as_negint
(Quantum
q
)
Category(ies):
EStack Arithmetic
Description:
Pushes nonzero
q
onto the estack as a tagged negative big integer.
Inputs:
q
Quantum.
Outputs:
None
Assumptions:
q
is nonzero.
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_quantum_as_nonnegative_int, push_reciprocal_of_quantum,
push_minus_recip_of_quantum, push_quantum_pair_as_pos_frac
Example:
void push_quadratic_discriminant (EStackIndex a, EStackIndex b, EStackIndex c)
/* Pushes onto the estack b^2 - 4 a c. */
{ Access_AMS_Global_Variables;
push_negate_quantum_as_negint (4u);
times_top (a);
times_top (c);
a = top_estack;
push_square (b);
replace_top2_with_sum (a);
}

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals