http://learn.cemetech.net/index.php?title=TI-BASIC:System_Variables&feed=atom&action=historyTI-BASIC:System Variables - Revision history2024-03-29T10:26:20ZRevision history for this page on the wikiMediaWiki 1.34.0http://learn.cemetech.net/index.php?title=TI-BASIC:System_Variables&diff=1528&oldid=prevMaintenance script: Automated internal link correction2016-02-24T23:22:07Z<p>Automated internal link correction</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 23:22, 24 February 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l7" >Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* Evaluating them at a point, using the syntax EqVar(''value'') - for example, Y,,1,,(5). This will plug ''value'' in for the independent variable - X, T, θ, or ''n'' for function, parametric, polar, and sequential variables respectively.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* Evaluating them at a point, using the syntax EqVar(''value'') - for example, Y,,1,,(5). This will plug ''value'' in for the independent variable - X, T, θ, or ''n'' for function, parametric, polar, and sequential variables respectively.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* Storing a string to them.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* Storing a string to them.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Using the [[TI-BASIC:Equ►String(|Equ►String(]] or [[TI-BASIC:<del class="diffchange diffchange-inline">String►Equ(</del>|String►Equ(]] command to go back and forth from string to equation form.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* Using the [[TI-BASIC:Equ►String(|Equ►String(]] or [[TI-BASIC:<ins class="diffchange diffchange-inline">String_Equ</ins>|String►Equ(]] command to go back and forth from string to equation form.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>In addition to their string contents, an equation variable contains two other pieces of information - the graphing style, set with the [[TI-BASIC:Graphstyle|GraphStyle(]] command, and the state (enabled or disabled), set with the [[TI-BASIC:Fnon|FnOn]] and [[TI-BASIC:Fnoff|FnOff]] commands. There is unfortunately, no way to find out which graphing style or state a variable is in, you can only set these to a value.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>In addition to their string contents, an equation variable contains two other pieces of information - the graphing style, set with the [[TI-BASIC:Graphstyle|GraphStyle(]] command, and the state (enabled or disabled), set with the [[TI-BASIC:Fnon|FnOn]] and [[TI-BASIC:Fnoff|FnOff]] commands. There is unfortunately, no way to find out which graphing style or state a variable is in, you can only set these to a value.</div></td></tr>
</table>Maintenance scripthttp://learn.cemetech.net/index.php?title=TI-BASIC:System_Variables&diff=1033&oldid=prevMaintenance script: Initial automated import2016-02-24T18:31:11Z<p>Initial automated import</p>
<p><b>New page</b></p><div>System variables are, for the purposes of this guide, variables that certain commands will use or modify without asking (i.e. without supplying them in the command's arguments). This is a somewhat ill-defined category, and in fact the system variables we'll discuss are of a somewhat miscellaneous nature. They include equation and plot variables, window and table parameters, statistical variables, and finance variables.<br />
<br />
= Equation variables and plot variables <span id=" equation"></span> =<br />
<br />
The equation variables include Y,,0,, through Y,,9,, (function variables), X,,1T,, and Y,,1T,, through X,,6T,, and Y,,6T,, (parametric variables), r,,1,, through r,,6,, (polar variables), and u, v, w (sequential variables). They are used when graphing an equation on the graph screen. From the point of view of a programmer, it's important to realize that these variables are actually [[TI-BASIC:Strings|Strings]] in disguise. That is to say, they are stored internally as strings, though the string operations and commands won't work on them. Instead, the following operations are valid for equations:<br />
* Evaluating them, by using the equation variable in an expression.<br />
* Evaluating them at a point, using the syntax EqVar(''value'') - for example, Y,,1,,(5). This will plug ''value'' in for the independent variable - X, T, θ, or ''n'' for function, parametric, polar, and sequential variables respectively.<br />
* Storing a string to them.<br />
* Using the [[TI-BASIC:Equ►String(|Equ►String(]] or [[TI-BASIC:String►Equ(|String►Equ(]] command to go back and forth from string to equation form.<br />
<br />
In addition to their string contents, an equation variable contains two other pieces of information - the graphing style, set with the [[TI-BASIC:Graphstyle|GraphStyle(]] command, and the state (enabled or disabled), set with the [[TI-BASIC:Fnon|FnOn]] and [[TI-BASIC:Fnoff|FnOff]] commands. There is unfortunately, no way to find out which graphing style or state a variable is in, you can only set these to a value.<br />
<br />
Plot variables are used for displaying data graphically, in one of six styles: scatter plot, line plot, histogram, box plot, modified box plot, and normal plot. What the variables actually store varies with the plot type, but includes one or more data lists, and settings. All of this can be set with the [[TI-BASIC:Plotn|PlotN(]] command. All or some plots can be turned on and off with the [[TI-BASIC:Plotson|PlotsOn]] and [[TI-BASIC:Plotsoff|PlotsOff]] commands. The [[TI-BASIC:Select|Select(]] command is also useful for dealing with plots.<br />
<br />
= Window and table parameters <span id=" window"></span> =<br />
<br />
These store auxiliary information about the graphing window and include:<br />
<br />
* '''Xmin, Xmax, Ymin, Ymax''' -- determine the lower and upper X and Y bounds of the graph screen itself.<br />
* '''ΔX, ΔY''' -- defined to be (Xmax-Xmin)/94 and (Ymax-Ymin)/62 respectively; storing to them will change Xmax and Ymax to arrange this.<br />
* '''Xscl, Yscl''' -- determine how wide the marks on the axes (and, with [[TI-BASIC:Gridon|GridOn]], the grid marks) are spaced.<br />
* '''Xres''' -- determines the quality of [[TI-BASIC:Graphing_Mode#function|Function]] graphing (how many pixels apart points are calculated), and must be an integer 1-8.<br />
* '''Tmin, Tmax, Tstep''' -- determine the values at which T is evaluated in [[TI-BASIC:Graphing_Mode#parametric|Parametric]] graphing (as though it were a [[TI-BASIC:For|For(]] loop).<br />
* '''θmin, θmax, θstep''' -- the same idea, but for the θ variable in [[TI-BASIC:Graphing_Mode#polar|Polar]] graphing.<br />
* '''''n''Min, ''n''Max''' -- bounds for the ''n'' variable to evaluate (the step is always 1; also, these must be integers).<br />
* '''u(''n''Min), v(''n''Min), w(''n''Min)''' - override the value of u, v, and w at ''n''Min, for the purposes of recursively defining them.<br />
* '''PlotStart, PlotStep''' -- actually have nothing to do with plots, but determine which values of ''n'' are graphed.<br />
* all of the above have a Z equivalent (ZXmin, Zθstep, etc.) that's used by [[TI-BASIC:Zoomsto|ZoomSto]] and [[TI-BASIC:Zoomrcl|ZoomRcl]].<br />
* '''XFact, YFact''' -- the scaling factors for [[TI-BASIC:Zoom_In|Zoom In]] and [[TI-BASIC:Zoom_Out|Zoom Out]].<br />
* '''TblStart, ΔTbl''' -- the starting value and step for the independent variable in the table screen.<br />
* '''TblInput''' -- a 7-element list of the values of a variable in the table.<br />
<br />
When transferring variables between calculators, or grouping variables, these variables are grouped in Window, rclWindow, and TblSet.<br />
<br />
You can store to each of the window variables directly, or use the [[TI-BASIC:Zoom|Zoom]] commands, which affect multiple variables at once to achieve some effect.<br />
<br />
= Statistical Variables <span id=" statistical"></span> =<br />
<br />
These cannot be stored to, although their values can be used - instead they are modified by statistical commands, which use them as output. See the [[TI-BASIC:Statistics|Statistics]] pages for more information.<br />
<br />
= Finance Variables <span id=" finance"></span> =<br />
<br />
The seven finance variables are '''N''', I%, PV, PMT, FV, P/Y, and C/Y. They are used by the finance solver tool; to use the solver in a program, set these variables to the values you want, choose one of the options [[TI-BASIC:Pmt_End|Pmt_End]] or [[TI-BASIC:Pmt_Bgn|Pmt_Bgn]], and then use the value tmv_VAR (where VAR is the variable you want to solve for).<br />
<br />
Another use of the finance variables is in speed-critical sections of code: they are faster to access even than [[TI-BASIC:Ans|Ans]]. Somewhat off-setting this advantage is the fact that they are two byte tokens, and that they don't work as the variables of a [[TI-BASIC:Seq_List|seq(]] command or a [[TI-BASIC:For|For(]] loop (they will actually throw a [[TI-BASIC:Errors#syntax|ERR:SYNTAX]] error) or [[|is|IS>(]] and [[TI-BASIC:Ds|DS>(]]. In addition the value of C/Y is altered when P/Y is altered.[[Category:TI-BASIC]]<br />
[[Category:TIBD]]</div>Maintenance script