Appendix A: System Routines — Math
755
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
are_units_consistent
Declaration:
Boolean 
are_units_consistent
 (EStackIndex 
i
, EStackIndex 
j
)
Category(ies):
Math
Description:
Tests whether two expressions have consistent units.
Inputs:
i
— EStackIndex of an expression.
j
— EStackIndex of an expression.
Outputs:
Returns TRUE if 
i
 and 
j
 have consistent units, otherwise returns FALSE.
Assumptions:
None
Side Effects:
May cause estack expansion or heap compression.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
If r indexes the bolded tag in the following expression 1.2_m as follows
0x40 0x00 0x12 0x00 0x00 0x00 0x00 0x00 0x00 FLOAT_TAG 0 _ m 0 
MULTIPLY_TAG
and s indexes the bolded tag in the following expression 3.5791_ft as follows
0x40 0x00 0x35 0x79 0x10 0x00 0x00 0x00 0x00 FLOAT_TAG 0 _ f t 0 
MULTIPLY_TAG
then
are_units_consistent (r, s);
will return TRUE, since both expression are length measurements.