EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #507 background imageLoading...
Page #507 background image
Appendix A: System Routines — EStack Arithmetic
465
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
compare_complex_magnitudes
Declaration:
int
compare_complex_magnitudes
(IndexConstQuantum
j
,
IndexConstQuantum
k
)
Category(ies):
EStack Arithmetic
Description:
Compares the magnitude of the complex number indexed by
j
with the
complex number indexed by
k
.
Inputs:
j, k
Indexes of tagged real or unreal numbers.
Outputs:
Returns 1 if the complex number indexed by
j
has a greater magnitude
than the complex number indexed by
k
. Returns
L
1 if the complex number
indexed by
j
has a greater magnitude than the complex number indexed
by
k
. Returns 0 if the complex number indexed by
j
has the same
magnitude as the complex number indexed by
k.
Remember that complex
numbers include real numbers. Avoids square roots even if
j
and/or
k
index nonreal numbers.
Assumptions:
j
and
k
point to the tags of tagged real or unreal numbers.
Note that PI_TAG and INFINITY_TAG are not considered numbers here.
Side Effects:
Temporarily attempts to push items onto the estack.
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: compare_numbers, compare_Floats, compare_expressions
Examples:
Boolean has_larger_complex_magnitude (EStackIndex i, EStackIndex j)
{ return compare_complex_magnitudes(j,k) > 0;
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals