Texas Instruments TI89 Developer Guide - Page 734
replace_top_with_post_simplified, push_eigvl
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 734 highlights
692 Appendix A: System Routines - Lists and Matrices 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 TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001