Chapter 16: Working with Numbers
187
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
Internal tokenized values are handled by all of the evaluation/simplification
routines. For example,
push_sum
,
push_difference
,
push_product
, and
push_ratio
automatically handle complex arithmetic.
push_abs
computes the
magnitude of a complex value.
push_phase
computes the phase angle of a
complex value.
push_sin
,
push_cos
,
push_tan
,
push_ln
, and so on, all
understand complex values in internal tokenized form and compute and return
the appropriate result in internal tokenized form. However, the display routines do
not take this form. Do not pass internal tokenized form to
display_statements
,
Parse1DExpr
, etc. First, use
replace_top_with_post_simplified
to convert the
internal form to external form. Then the result can be handled by the display
routines.