Appendix A: System Routines — Math
785
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_floor
Declaration:
void
push_floor
(EStackIndex
k
)
Category(ies):
Math
Description:
Pushes onto the estack the internally-simplified floor of the expression
indexed by
k
. For unreal arguments x +
i
ù
y with x and y real, the result is
floor(x) +
i
ù
floor(y).
Example: floor(
L
2.1) ->
L
3
Inputs:
k
— Indexes the top tag of an algebraic expression or an aggregate
thereof.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
void push_ceiling (EStackIndex i)
/* i indexes an algebraic expression u or an aggregate thereof.
Pushes ceiling(u) onto the estack.
Uses the identity ceiling(u) = -floor (-u).
*/
{ Access_AMS_Global_Variables;
EStackIndex old_top = top_estack;
push_negate (i);
i = top_estack;
push_floor (i);
negate_top ();
delete_between (old_top, i);
}