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 #734 background imageLoading...
Page #734 background image
692
Appendix A: System Routines — Lists and Matrices
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_eigvl
Declaration:
void
push_eigvl
(EStackIndex
mat_idx
)
Category(ies):
Lists and Matrices, Math
Description:
Returns the eigen values for a real or complex square matrix on the estack.
This is the TI-BASIC eigVl command.
Inputs:
mat_idx
Indexes the input square matrix.
Outputs:
None
Assumptions:
None
Side Effects:
May expand expression stack, cause heap compression, or throw an error.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also: push_eigvc
Example:
This example is essentially the eigVl example from the TI-89 guidebook
only written as an app. Note that it forces the current complex mode to
rectangular. The output rather than being displayed in the Home screen is
stored in the variable LST3. If we remove the
replace_top_with_post_simplified
then the result will not be in
displayable or storable format.
Access_AMS_Global_Variables;
BYTE lst3[] = {0,'l','s','t','3',0};
// [-1,2,5; 3,-6,9; 2,-5,7]
const Quantum tArray[] = {END_TAG,
END_TAG,7,1,NONNEGATIVE_INTEGER_TAG, 5,1,NEGATIVE_INTEGER_TAG,
2,1,NONNEGATIVE_INTEGER_TAG, LIST_TAG,
END_TAG,9,1,NONNEGATIVE_INTEGER_TAG, 6,1,NEGATIVE_INTEGER_TAG,
3,1,NONNEGATIVE_INTEGER_TAG, LIST_TAG,
END_TAG,5,1,NONNEGATIVE_INTEGER_TAG, 2,1,NONNEGATIVE_INTEGER_TAG,
1,1,NEGATIVE_INTEGER_TAG, LIST_TAG,
LIST_TAG
};
#define tArrayIndex ((EStackIndex) (tArray+sizeof(tArray)-1))
MO_currentOptions();
MO_option[MO_OPT_COMPLEX_FORMAT] = MO_VECT_RECT;
MO_digestOptions(H_NULL);
TRY
push_eigvl( tArrayIndex );
// output may have been in internal format
replace_top_with_post_simplified(top_estack);
VarStore( lst3+5, STOF_ESI, 0, top_estack );
ONERR
ERD_dialog( errCode, FALSE );
ENDTRY

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