<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ATipstricks</id>
	<title>TI-BASIC:Tipstricks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ATipstricks"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Tipstricks&amp;action=history"/>
	<updated>2026-04-29T12:19:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Tipstricks&amp;diff=1546&amp;oldid=prev</id>
		<title>Maintenance script: Automated internal link correction</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Tipstricks&amp;diff=1546&amp;oldid=prev"/>
		<updated>2016-02-24T23:53:36Z</updated>

		<summary type="html">&lt;p&gt;Automated internal link correction&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:53, 24 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Right Triangle Hypotenuse&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Right Triangle Hypotenuse&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&quot;&gt;&lt;div&gt;You can get the hypotenuse of a right triangle by using [[TI-BASIC:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;R►Pr(&lt;/del&gt;|R►Pr(]]a,b), where a and b are the legs of a right triangle, or [[TI-BASIC:Abs|Abs(]]a+b&#039;&#039;i&#039;&#039;, where a and b are the legs of a right triangle and &#039;&#039;i&#039;&#039; is the imaginary i.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&quot;&gt;&lt;div&gt;You can get the hypotenuse of a right triangle by using [[TI-BASIC:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;R_Pr&lt;/ins&gt;|R►Pr(]]a,b), where a and b are the legs of a right triangle, or [[TI-BASIC:Abs|Abs(]]a+b&#039;&#039;i&#039;&#039;, where a and b are the legs of a right triangle and &#039;&#039;i&#039;&#039; is the imaginary i.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Dividing by 100&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Dividing by 100&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Tipstricks&amp;diff=550&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Tipstricks&amp;diff=550&amp;oldid=prev"/>
		<updated>2016-02-24T18:06:53Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When contributing a tip or trick, please follow these guidelines:&lt;br /&gt;
&lt;br /&gt;
# A tip/trick about using a command should only be included if it is undocumented or not well-known.&lt;br /&gt;
# A tip/trick should have some practical application as part of a program, and not just be something trivial.&lt;br /&gt;
# A tip/trick about making a program more efficient generally belongs on the [[TI-BASIC:Optimize|optimization]] page.&lt;br /&gt;
# A tip/trick should be thoroughly explained and tested to make sure others can use it correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-bottom:30px;&amp;quot;&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Eliminate Annoying Things&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If you want you to get rid of the “Done” message after you exit your program you can place some text or just a single double-quote on the last line of your program. Another option is to use the [[TI-BASIC:Output|Output(]] command, which has the benefit of not moving the cursor to the second line.&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Output(4,4,&amp;quot;Some Text&lt;br /&gt;
 :&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Another annoying thing is the run indicator that appears in the upper right corner of the screen. You can get rid of the run indicator by using Text(-1,0,90,&amp;quot; &amp;quot; or Output(1,16,&amp;quot; &amp;quot; (on the home screen) in a [[TI-BASIC:Getkey|GetKey]] loop:&lt;br /&gt;
&lt;br /&gt;
 :Repeat Ans&lt;br /&gt;
 :Text(-1,0,90,&amp;quot; // 1 space&lt;br /&gt;
 :getKey→K&lt;br /&gt;
 :End&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Home Screen Text on Graph Screen&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To get home screen font on the graph screen (except on the regular TI-83) you should place &amp;#039;-1&amp;#039; at the beginning of the [[TI-BASIC:Text|Text(]] command:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :Text(-1,Y,X,&amp;quot;Text&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Digits in a Number&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To find out the number of digits in a whole number (i.e., a number without decimals), use the [[TI-BASIC:Log|Log(]] function. An [[TI-BASIC:Abs)|Abs)]] function prevents a domain error when taking the logarithm of a negative number:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :1+int(log(abs(#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Empty Variables&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You can create an empty string with &amp;quot;→Str1, and an empty list with the [[TI-BASIC:Clrlist|ClrList]] command.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Displaying Quotes and Store&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Without storing them to a special string, you cannot usually display quotation marks (&amp;quot;) and the [[TI-BASIC:Store|Store]] command (→). However, you can mimic these respectively in the [[TI-BASIC:Text|Text(]] command by using two apostrophes (&amp;#039; &amp;#039;), and two subtract signs and a greater than sign (—&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Right Triangle Hypotenuse&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You can get the hypotenuse of a right triangle by using [[TI-BASIC:R►Pr(|R►Pr(]]a,b), where a and b are the legs of a right triangle, or [[TI-BASIC:Abs|Abs(]]a+b&amp;#039;&amp;#039;i&amp;#039;&amp;#039;, where a and b are the legs of a right triangle and &amp;#039;&amp;#039;i&amp;#039;&amp;#039; is the imaginary i.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Dividing by 100&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Using the program editor, you can place the [[TI-BASIC:Percent|%]] symbol directly into the code as a replacement for dividing by 100. This saves a few bytes each time you use it.&lt;br /&gt;
&lt;br /&gt;
Using the [[TI-BASIC:Sub|Sub(]] command, if only one argument is given and it contains an expression that evaluates to a real, complex, or list of numbers, the argument will be divided by 100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :sub(225&lt;br /&gt;
     2.25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Turn the Screen Black&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If your window is set up so that Xscl &amp;lt; ΔX and Yscl &amp;lt; ΔY, you can use [[TI-BASIC:Gridon|GridOn]] to make the entire screen black. You should note, however, that is rather slow.&lt;br /&gt;
You can also use [[TI-BASIC:Shade|Shade(]] to go faster.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :Shade(Ymin,Ymax&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Inputting Coordinates&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Most programmers know the normal syntax for Input, but it can be used alone without any arguments. This simply displays a little &amp;quot;+&amp;quot; on the graph screen, along with the coordinates on the bottom. The plus symbol can be moved horizontally or vertically to a certain coordinate, and the command ends by pressing ENTER. The coordinates are then stored to x and y, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :Input&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Faster Circles&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
On the TI-83+ and above, the [[TI-BASIC:Circle|Circle(]] command has an alternate syntax. When a complex list such as {i} is added as the 4th argument, &amp;quot;fast circle&amp;quot; mode will be turned on, which uses the symmetries of a circle to save on trig calculations, and draws a circle in only 30% of the time it would normally take.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :Circle(0,0,5,{i&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Extra Characters&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Although the extra characters are only available through an [[TI-BASIC:Assembly|Assembly]] program, once you have them you can store them to a string and then use the string in a program with no problems. The characters include lowercase letters and ASCII characters (such as @, &amp;amp;, #, $, and international characters like ä).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Strange Control Flow&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
There are a few cases of strange [[TI-BASIC:Controlflow|control flow]], where you can use [[TI-BASIC:If|If]] conditionals by themselves, or together with [[TI-BASIC:While|loops]] and/or [[TI-BASIC:Delvar|DelVar]], to create some interesting results. The Disp commands tell the input conditions under which they will be executed. &lt;br /&gt;
&lt;br /&gt;
* The dangling else (i.e, the executed statement itself is a conditional)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :If A:If B:Disp &amp;quot;B or not(A)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :If A:Then&lt;br /&gt;
 :Disp &amp;quot;A&lt;br /&gt;
 :If B:Else&lt;br /&gt;
 :Disp &amp;quot;not(A) or not(B)&lt;br /&gt;
 :End&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Misusing the [[TI-BASIC:Delvar|DelVar]] bug that occurs when chaining an [[TI-BASIC:If|If]], [[TI-BASIC:Else|Else]], or [[TI-BASIC:End|End]] command to the end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :If A:DelVar XIf 0&lt;br /&gt;
 :Disp &amp;quot;not(A)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :If A:Then&lt;br /&gt;
 :Disp &amp;quot;A&lt;br /&gt;
 :If B:DelVar XElse&lt;br /&gt;
 :Disp &amp;quot;A and not(B)&lt;br /&gt;
 :End&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Running Programs from Assembly Shells&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
As a matter of convenience, you can run your TI-Basic program from an [[TI-BASIC:Asmshells|assembly shell]]. DoorsCS 6 will automatically display all programs, but you need to place a colon (&amp;quot;:&amp;quot;) as the first line of your program for MirageOS to recognize it. However, it should be noted that there is no guarantee that your program will work correctly when run by a shell.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Moving Setup to Program End&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If you have a large program where speed is at a premium, then you want the main program loop as close to the beginning of the program as possible. Since [[TI-BASIC:Setup|program setup]] is usually the code that is at the beginning of the program, this means that you should move it to the end of the program and then jump to it using a [[TI-BASIC:Goto|Goto]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :99→I&lt;br /&gt;
 :Goto 0&lt;br /&gt;
 …&lt;br /&gt;
 :Lbl 0&lt;br /&gt;
 :ClrDraw&lt;br /&gt;
 :ZStandard&lt;br /&gt;
 :ZInteger&lt;br /&gt;
 :Menu(&amp;quot; FROGGER v1.0 &amp;quot;,&amp;quot;PLAY&amp;quot;,1,&amp;quot;HELP&amp;quot;,2,&amp;quot;EXIT&amp;quot;,3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Self-Modifying Lists&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Formulas that return a single real number can stored and used in many ways when stored to a graphing variable such as u:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;5X+1-&amp;gt;Y1&lt;br /&gt;
 Disp Y1(2             ;11&lt;br /&gt;
 &amp;quot;X^2+2X+1-&amp;gt;u&lt;br /&gt;
 Disp solve(u,X,0      ;1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, for formulas that return a list of numbers, lists can be used in the same way:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 randIntNoRep(1,10-&amp;gt;L1&lt;br /&gt;
 Disp L1               ;{4,2,5,8,10,1,3,7,9,6&lt;br /&gt;
 Disp L1               ;{9,2,6,3,10,7,1,8,4,5[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>