EasyManua.ls Logo

Texas Instruments TI-89

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
Loading...
Appendix A: System Routines — Statistics
957
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
statStart
(continued)
Example:
This example does no real statistical calculations but shows the steps
involved in an app that writes to the system statistical variables.
{ Access_AMS_Global_Variables;
BYTE tag[2];
BCD16 fN=1.0, fMINX=2.0;
TRY
statStart(); /* allow writes to stat vars */
RM_Type = RM_NONE;
tag[1] = SYSVAR_TAG;
tag[0] = SV_N;
push_Float( fN );
VarStore( tag+1, STOF_ESI, 0, top_estack );
tag[0] = SV_MINX;
push_Float( fMINX );
VarStore( &tag[1], STOF_ESI, 0, top_estack );
statEnd();
ONERR
statEnd(); /* signal we are not writing to stat vars */
PASS; /* pass error on up to previous error handler */
ENDTRY
cmd_showstat();
}

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals