<?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%3APolynomial_Division</id>
	<title>TI-BASIC:Polynomial Division - 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%3APolynomial_Division"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Polynomial_Division&amp;action=history"/>
	<updated>2026-06-03T22:17:53Z</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:Polynomial_Division&amp;diff=1439&amp;oldid=prev</id>
		<title>Maintenance script: Automated superscript correction</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Polynomial_Division&amp;diff=1439&amp;oldid=prev"/>
		<updated>2016-02-24T22:23:43Z</updated>

		<summary type="html">&lt;p&gt;Automated superscript 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 22:23, 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-l77&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&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;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;This routine will solve polynomial division with any given integer degrees.  The dimension of L,,1,, is the degree+1 of the dividend polynomial, and the dimension of L,,2,, is the degree+1 of the divisor. The numbers used in the list are the coefficients of the respective polynomial in descending degree order, including place holder 0&#039;s.  So, a polynomial of 3&#039;&#039;x&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;3&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;+2&#039;&#039;x&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;2&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;-1 would need to be {3,2,0,-1}.  The program outputs the code as L,,3,, in that form.  The program also displays the degree of the first term.  Once you reach the &#039;&#039;x&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;0&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^ &lt;/del&gt;term, all the coefficients afterward are the remainders.  So, a display of X^2 {3,2,1,5,3} says 3&#039;&#039;x&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;2&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;^^&lt;/del&gt;+2&#039;&#039;x&#039;&#039;+1 and a remainder of 5&#039;&#039;x&#039;&#039;+3.&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;This routine will solve polynomial division with any given integer degrees.  The dimension of L,,1,, is the degree+1 of the dividend polynomial, and the dimension of L,,2,, is the degree+1 of the divisor. The numbers used in the list are the coefficients of the respective polynomial in descending degree order, including place holder 0&#039;s.  So, a polynomial of 3&#039;&#039;x&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;sup&amp;gt;&lt;/ins&gt;3&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/sup&amp;gt;&lt;/ins&gt;+2&#039;&#039;x&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;sup&amp;gt;&lt;/ins&gt;2&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/sup&amp;gt;&lt;/ins&gt;-1 would need to be {3,2,0,-1}.  The program outputs the code as L,,3,, in that form.  The program also displays the degree of the first term.  Once you reach the &#039;&#039;x&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;sup&amp;gt;&lt;/ins&gt;0&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/sup&amp;gt; &lt;/ins&gt;term, all the coefficients afterward are the remainders.  So, a display of X^2 {3,2,1,5,3} says 3&#039;&#039;x&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;sup&amp;gt;&lt;/ins&gt;2&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/sup&amp;gt;&lt;/ins&gt;+2&#039;&#039;x&#039;&#039;+1 and a remainder of 5&#039;&#039;x&#039;&#039;+3.&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;The program first asks for input.  It asks for the degree of each polynomial, and then it asks for the contents using a [[TI-BASIC:For|For]]( loop until there are no more terms.  It then commences with the main loop which is another For( loop.  The program works in very much the same way people would go about solving a division problem.  It divides the current leading terms of the dividend by the first term of the divisor and puts it into L,,3,,, our answer.  It then does a second For( loop multiplying the partial quotient by every term of the divisor.  At the end, it discovers the remainder in L,,1,, and stores them into the end of L,,3,, for a complete answer.&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;The program first asks for input.  It asks for the degree of each polynomial, and then it asks for the contents using a [[TI-BASIC:For|For]]( loop until there are no more terms.  It then commences with the main loop which is another For( loop.  The program works in very much the same way people would go about solving a division problem.  It divides the current leading terms of the dividend by the first term of the divisor and puts it into L,,3,,, our answer.  It then does a second For( loop multiplying the partial quotient by every term of the divisor.  At the end, it discovers the remainder in L,,1,, and stores them into the end of L,,3,, for a complete answer.&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:Polynomial_Division&amp;diff=734&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:Polynomial_Division&amp;diff=734&amp;oldid=prev"/>
		<updated>2016-02-24T18:15:56Z</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;&amp;lt;div style=&amp;quot;float:right; width: 16em; padding: 1em 1em 0; margin: 1em 0 1em 1em; border-left: solid #888888 1px; background-color: #FFFFFF;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Routine Summary&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This program will divide two polynomials of any positive integer degree.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Inputs&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;L,,1,,&amp;#039;&amp;#039;- Dividend&lt;br /&gt;
&amp;#039;&amp;#039;L,,2,,&amp;#039;&amp;#039;- Divisor&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Outputs&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;L,,3,,&amp;#039;&amp;#039;- Quotient coefficients in descending degree&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Variables used&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
L,,1,,, L,,2,,, L,,3,,, A, B, D&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Calculator Compatibility&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
TI-83/84/+/SE&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Author&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Timothy Foster&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[http://tibasicdev.wikidot,com/local--files/polynomial-division/POLYDIV.8xp polydiv.8xp]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[TI-BASIC:Collapsible_Show=&amp;quot;+_Show_Input_Code&amp;quot;_Hide=&amp;quot;__Hide_Input_Code&amp;quot;_HideLocation=&amp;quot;bottom&amp;quot;|Collapsible_Show=&amp;quot;+_Show_Input_Code&amp;quot;_Hide=&amp;quot;__Hide_Input_Code&amp;quot;_HideLocation=&amp;quot;bottom&amp;quot;]]&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :DelVar L₁DelVar L₂&lt;br /&gt;
 :Disp &amp;quot;DEGREE&lt;br /&gt;
 :Input &amp;quot;DIVIDEND &amp;quot;,A&lt;br /&gt;
 :Input &amp;quot;DIVISOR &amp;quot;,B&lt;br /&gt;
 :A+1→dim(L₁&lt;br /&gt;
 :B+1→dim(L₂&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Disp &amp;quot;TERM COEFFICIENTS&lt;br /&gt;
 :Disp &amp;quot;&lt;br /&gt;
 :For(A,1,dim(L₁&lt;br /&gt;
 :Output(2,1,&amp;quot;DIVIDEND&lt;br /&gt;
 :Output(2,10,A&lt;br /&gt;
 :Input D&lt;br /&gt;
 :D→L₁(A&lt;br /&gt;
 :End&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Disp &amp;quot;TERM COEFFICIENTS&lt;br /&gt;
 :Disp &amp;quot;&lt;br /&gt;
 :For(A,1,dim(L₂&lt;br /&gt;
 :Output(2,1,&amp;quot;DIVISOR&lt;br /&gt;
 :Output(2,9,A&lt;br /&gt;
 :Input D&lt;br /&gt;
 :D→L₂(A&lt;br /&gt;
 :End&lt;br /&gt;
&lt;br /&gt;
[[TI-BASIC:/collapsible|/collapsible]]&lt;br /&gt;
&lt;br /&gt;
 :DelVar L₃&lt;br /&gt;
 :For(A,1,dim(L₁)+1-dim(L₂&lt;br /&gt;
 :L₁(A)/L₂(1→L₃(A&lt;br /&gt;
 :For(B,2,dim(L₂&lt;br /&gt;
 :L₃(A)L₂(B&lt;br /&gt;
 :-Ans+L₁(A+(B-1→L₁(A+(B-1&lt;br /&gt;
 :End&lt;br /&gt;
 :End&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :For(A,dim(L₁)-(dim(L₂)-2),dim(L₁&lt;br /&gt;
 :L₁(A→L₃(1+dim(L₃&lt;br /&gt;
 :End&lt;br /&gt;
 :Disp &amp;quot;FIRST TERM&lt;br /&gt;
 :Output(2,1,&amp;quot;X^&lt;br /&gt;
 :Output(2,3,dim(L₁)-dim(L₂&lt;br /&gt;
 :Output(3,1,L₃&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This routine will solve polynomial division with any given integer degrees.  The dimension of L,,1,, is the degree+1 of the dividend polynomial, and the dimension of L,,2,, is the degree+1 of the divisor. The numbers used in the list are the coefficients of the respective polynomial in descending degree order, including place holder 0&amp;#039;s.  So, a polynomial of 3&amp;#039;&amp;#039;x&amp;#039;&amp;#039;^^3^^+2&amp;#039;&amp;#039;x&amp;#039;&amp;#039;^^2^^-1 would need to be {3,2,0,-1}.  The program outputs the code as L,,3,, in that form.  The program also displays the degree of the first term.  Once you reach the &amp;#039;&amp;#039;x&amp;#039;&amp;#039;^^0^^ term, all the coefficients afterward are the remainders.  So, a display of X^2 {3,2,1,5,3} says 3&amp;#039;&amp;#039;x&amp;#039;&amp;#039;^^2^^+2&amp;#039;&amp;#039;x&amp;#039;&amp;#039;+1 and a remainder of 5&amp;#039;&amp;#039;x&amp;#039;&amp;#039;+3.&lt;br /&gt;
&lt;br /&gt;
The program first asks for input.  It asks for the degree of each polynomial, and then it asks for the contents using a [[TI-BASIC:For|For]]( loop until there are no more terms.  It then commences with the main loop which is another For( loop.  The program works in very much the same way people would go about solving a division problem.  It divides the current leading terms of the dividend by the first term of the divisor and puts it into L,,3,,, our answer.  It then does a second For( loop multiplying the partial quotient by every term of the divisor.  At the end, it discovers the remainder in L,,1,, and stores them into the end of L,,3,, for a complete answer.&lt;br /&gt;
&lt;br /&gt;
Here are a couple of examples for you to try out to see if the code was inputted correctly:&lt;br /&gt;
&lt;br /&gt;
{{Template:TI-BASIC:Math&lt;br /&gt;
|eqn=&lt;br /&gt;
{x^2+3x-2 \over x+1} = x+2- {4 \over x+1} \hspace{12pt} \{ 1,2,-4 \}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Template:TI-BASIC:Math&lt;br /&gt;
|eqn=&lt;br /&gt;
{x^4+3x^2-2x+1 \over x^2+4x+6} = x^2-4x+13-{30x+77 \over x^2+4x+6} \hspace{12pt} \{1,-4,13,-30,-77\}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#invaliddim|ERR: INVALID DIM]]&amp;#039;&amp;#039;&amp;#039; occurs if the degrees are made negative or the divisor&amp;#039;s degree is larger than the dividend&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#divideby0|ERR: DIVIDE BY 0]]&amp;#039;&amp;#039;&amp;#039; happens if the leading coefficient of the divisor is 0&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#datatype|ERR: DATA TYPE]]&amp;#039;&amp;#039;&amp;#039; is thrown if anything is imaginary[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>