502
push_reciprocal_of_quantum
Declaration:
void push_reciprocal_of_quantum (Quantum q )
Category(ies):
EStack Arithmetic
Description:
Pushes tagged fraction 1/ q onto the estack.
Inputs:
q — Quantum.
Outputs:
None
Assumptions:
q > 1.
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI-89 / TI-92 Plus
None
Differences:
See Also:
push_negate_quantum_as_negint,
push_quantum_as_nonnegative_int,
push_minus_recip_of_quantum,
push_quantum_pair_as_pos_frac
Example:
void push_percent (EStackIndex i)
/* i indexes an algebraic or aggregate expression.
Pushes i divided by 100.
*/
{
if (is_units_term (i))
ER_THROW (ER_INVALID_USE_OF_UNITS);
push_reciprocal_of_quantum (100u);
times_top (i);
}
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — EStack Arithmetic
Not for Distribution
Beta Version January 26, 2001