Texas Instruments TI-89 Developer's Manual page 640

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

598
gr_CptIndepInc
Example:
Given a floating-point independent value and a pointer to the min, max,
and step values for the independent variable, ICvtFtoP returns the
corresponding increment or 0xFFFF if the independent value is out of
range.
WORD ICvtFtoP( BCD16 f, BCD16 *indep_rng )
{
Access_AMS_Global_Variables;
WORD NewInc;
switch (gr_active->graph_mode) {
case GR_FUNC:
return( (WORD) XCvtFtoP(f, gr_active) );
case GR_DE:
case GR_SEQ:
case GR_PAR:
case GR_POL:
if (gr_CptIndepInc(f, indep_rng, &NewInc))
return( NewInc );
case GR_3D:
return ((f - gr_active->rngp[GR_XMIN]) * (gr_active->rngp[GR_XGRID] /
(gr_active->rngp[GR_XMAX] - gr_active->rngp[GR_XMIN])));
}
return 0xFFFF;
}
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Graphing
(continued)
Not for Distribution
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents