<?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%3ARef</id>
	<title>TI-BASIC:Ref - 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%3ARef"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Ref&amp;action=history"/>
	<updated>2026-04-29T16:09:58Z</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:Ref&amp;diff=519&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:Ref&amp;diff=519&amp;oldid=prev"/>
		<updated>2016-02-24T18:05:25Z</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;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=REF.GIF&lt;br /&gt;
|summary=Puts a matrix into row-echelon form.&lt;br /&gt;
|syntax=ref(&amp;#039;&amp;#039;matrix&amp;#039;&amp;#039;)&lt;br /&gt;
|location=Press:&lt;br /&gt;
# MATRX (on the TI-83) or 2nd MATRX (TI-83+ or higher) to access the matrix menu.&lt;br /&gt;
# RIGHT to access the MATH submenu.&lt;br /&gt;
# ALPHA A to select ref(, or use arrows.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=2 bytes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Given a matrix with at least as many columns as it has rows, the ref( command uses a technique called Gaussian elimination to put the matrix into row-echelon form.&lt;br /&gt;
&lt;br /&gt;
This means that the leftmost N columns (if the matrix has N rows) of the matrix are upper triangular - all entries below the main diagonal are zero. What&amp;#039;s more, every entry on the main diagonal is either 0 or 1.&lt;br /&gt;
&lt;br /&gt;
 [[1,2,5,0][2,2,1,2][3,4,6,2]]&lt;br /&gt;
 	[[1 2 5 0]&lt;br /&gt;
 	 [2 2 1 2]&lt;br /&gt;
 	 [3 4 6 2]&lt;br /&gt;
 ref(Ans)►Frac&lt;br /&gt;
 	[[1 4/3 2   2/3]&lt;br /&gt;
 	 [0 1   9/2 -1 ]&lt;br /&gt;
 	 [0 0   0   0  ]]&lt;br /&gt;
&lt;br /&gt;
= Advanced Uses =&lt;br /&gt;
&lt;br /&gt;
In theory, a system of linear equations in N variables can be solved using the ref( command - an equation of the form &amp;lt;math&amp;gt;a_1x_1+\dots + a_nx_n = b&amp;lt;/math&amp;gt; becomes a row &amp;lt;math&amp;gt;a_1, \dots, a_n, b&amp;lt;/math&amp;gt;, and is put into the matrix. If there is a sufficient number of conditions, the last row of the reduced matrix will give you the value of the last variable, and back-substitution will give you the others.&lt;br /&gt;
&lt;br /&gt;
In practice, it&amp;#039;s easier to use [[TI-BASIC:Rref|Rref(]] instead for the same purpose.&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#invaliddim|ERR:INVALID DIM]]&amp;#039;&amp;#039;&amp;#039; is thrown if the matrix has more rows than columns.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Rref|Rref(]]&lt;br /&gt;
* |- and other row operations.[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>