Appendix A: System Routines — Math
773
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_cos
Declaration:
void
push_cos
(EStackIndex
k
)
Category(ies):
Math
Description:
Pushes onto the estack the internally-simplified cosine of the expression
indexed by
k
. The only trigonometric tag that internally-simplified results
can contain is SIN2_TAG or (if IS_COLLECT_KERNELS) TAN_RAD_TAG,
whose arguments are always in radians.
When
k
indexes a square numeric matrix, pushes the Float matrix cosine
computed via
cos
(eigenvalues(matrix)).
Inputs:
k
— Index of the top tag of an internally-simplified algebraic expression,
algebraic comparison, or aggregate thereof, with angles measured
in radians.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_sin, push_tan, push_sin2
Example:
void push_sec (EStackIndex i)
/* Pushes onto the estack the secant of the expression indexed by i. */
{ if (LIST_TAG == ESTACK (i))
{ map_tail (push_sec, i - 1u);
push_quantum (LIST_TAG);
}
else
{ push_cos (i);
replace_top_with_reciprocal ();
}
}