<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="iBlog 1.4.5" -->
<rss version="2.0">
  <channel>
    <title> <![CDATA[CISC-271]]> </title>
    <link>http://www.cs.queensu.ca/home/daver/B271</link>
    <description> <![CDATA[Blog for CISC-271 Fall 206]]> </description>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
    
    <copyright>All rights reserved.</copyright>
    <lastBuildDate>Wed, 20 Dec 2006 11:05:22 -0500</lastBuildDate>
    <pubDate>Wed, 20 Dec 2006 11:05:22 -0500</pubDate>
    <generator>iBlog 1.4.5</generator>
    
    <item>
      <title><![CDATA[Lecture 18.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061020152455/index.html</link>
      <description> <![CDATA[<div><font face="Arial-BoldMT"><b><u>Interpolating with the Newton basis.</u></b></font><br /><font face="ArialMT">Today I  showed how Horner's rule can be used to evaluated the interpolating polynomial using the coefficients of the Newton basis. The advantage of using Horner's rule is misstated in the Ellis notes. Ellis remarks that Horner's rule uses half the number of multiplications when in fact it uses roughly the square root of the number of multiplications when compared to evaluating a polynomial naively.</font><br /><br /><font face="Arial-BoldMT"><b><u>Demonstrations with Matlab</u></b></font><br /><font face="ArialMT">Today  we saw some illuminating demonstrations, using Matlab, pertaining to polynomial interpolation. </font><br /><font face="ArialMT">We started with an exploration of full degree polynomial interpolation and the demonstration programs from Recktenwald:</font><br /><font face="ArialMT">demoGasNewt, demoGasLag, and demoGasVand. The main observation is that the poor scaling of the Vandermonde matrix yields visual artifacts in the polynomial plot. Then we looked at Moler's interpgui. This emphasized the difference between local interpolation methods, such as straight line and Hermite interpolation,  and interpolation where data points effect the interpolation curve globally, such as full degree polynomial interpolation and cubic splines. </font><br /><br /><font face="Arial-BoldMT"><b><u>Piecewise Polynomial Interpolation</u></b></font><br /><font face="ArialMT">Hermite interpolation and straight line interpolation are piece-wise  polynomial interpolation methods. They both use polynomial functions to locally interpolate each of the pieces. </font><br /><br /><font face="ArialMT">Hermite interpolation is named after the French mathematician<a href="http://www-gap.dcs.st-and.ac.uk/~history/Mathematicians/Hermite.html"> Charles Hermite.  </a> Let me emphasize that for material on piecewise polynomial interpolation the notation Pi(x) the i in the subscript refers to the polynomial interpolating the ith piece, and not the degree of the polynomial. For each piece a separate cubic polynomial is found. </font>&nbsp;</div> ]]> </description>
      <pubDate>Fri, 20 Oct 2006 15:24:55 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061020152455/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Readings for Week 7.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C18319642/E20061018145111/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT">Key: </font><br /><font face="TimesNewRomanPSMT">Ell =  Randy Ellis, Scientific Computing Notes</font><br /><font face="TimesNewRomanPSMT">Rec =  Gerald Recktenwald, Numerical Methods with Matlab</font><br /><br /><br /><font face="TimesNewRomanPSMT">Week 7:</font><br /><font face="TimesNewRomanPSMT">Topics:- Piece-wise polynomial interpolation.</font><br /><br /><br /><font face="TimesNewRomanPSMT">Ell covers piece-wise polynomial interpolation in classes 15 and 16. There is no mention in Ell, of solving the spline coefficients using a tri-diagonal matrix. </font><br /><br /><font face="TimesNewRomanPSMT">Rec covers Hermite and cubic spline interpolation in Chapter 10 sections 10.3 Section 10.4 discusses the built in Matlab interpolation routines. </font>&nbsp;</div> ]]> </description>
      <pubDate>Wed, 18 Oct 2006 14:51:11 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C18319642/E20061018145111/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Homework for Week 7.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061018144918/index.html</link>
      <description> <![CDATA[<div><font face="Helvetica">These questions deal with piece-wise polynomial interpolation. See the attached PDF file.  <a HREF="http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061018144918/Media/HW7.pdf">HW7.pdf</a>  </font>&nbsp;</div> ]]> </description>
      <pubDate>Wed, 18 Oct 2006 14:49:18 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061018144918/index.html</guid>
	  <enclosure url="http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061018144918/Media/HW7.pdf" length="26366" type="application/pdf" />

    </item>

    <item>
      <title><![CDATA[Lecture 17.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061018135055/index.html</link>
      <description> <![CDATA[<div><font face="Arial-BoldMT"><b>Polynomial Interpolation with the Lagrange basis.</b></font><br /><br /><font face="ArialMT">Today we saw that we can use the Lagrange basis for polynomial interpolation. The Lagrange basis is not likely to cause numerical errors as is the case when using the monomial basis for polynomial interpolation. </font><br /><br /><font face="Arial-BoldMT"><b>Polynomial interpolation with the Newton basis</b></font><br /><br /><font face="ArialMT">Today we looked at Newton divided differences. I wrote out the divided difference for a degree two polynomial, but I did not derive it on the board. Please note the derivation in Recktenwald leads to a formulation that does not match the usual divided difference form. There is also an error in the way f[x1,x2,x3] is defined on page 540. If you follow the derivation the first term in the numerator should be f[x1,x3]. This error is reported in the errata updates on the NMM web site. </font><br /><br />&nbsp;</div> ]]> </description>
      <pubDate>Wed, 18 Oct 2006 13:50:55 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061018135055/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Lecture 16.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061016170123/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPS-BoldMT"><b>Polynomial Interpolation</b></font><br /><font face="TimesNewRomanPSMT">I went through an application first. The matlab that I used is stored in the attached m-file.</font><br /><font face="Helvetica">  <a HREF="http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061016170123/Media/InterpExample.m.pdf">InterpExample.m.pdf</a>  </font><br /><font face="TimesNewRomanPSMT">We then saw how to use Vandermonde matrices to obtain an interpolating polynomial with the, </font><br /><font face="TimesNewRomanPS-ItalicMT"><i><u>monomial basis</u></i></font><font face="TimesNewRomanPSMT">. Along the way we performed a complexity analysis of this technique. To do this we needed to explore evaluating a polynomial using </font><font face="TimesNewRomanPS-ItalicMT"><i><u>Horner's method</u></i></font><font face="TimesNewRomanPSMT">. I then did an example of  linear interpolation in order to develope the technique of interpolating with the </font><font face="TimesNewRomanPS-ItalicMT"><i><u>Lagrange Basis.</u></i></font><font face="TimesNewRomanPSMT"> </font>&nbsp;</div> ]]> </description>
      <pubDate>Mon, 16 Oct 2006 17:01:23 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061016170123/index.html</guid>
	  <enclosure url="http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061016170123/Media/InterpExample.m.pdf" length="22280" type="application/pdf" />

    </item>

    <item>
      <title><![CDATA[Lecture 15.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061013161513/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT">The second quiz was written today. Early reports from the markers are that the questions on the 3rd page of the quiz were answered well. </font><br /><font face="TimesNewRomanPSMT">The quizzes should be ready for return on Monday.</font>&nbsp;</div> ]]> </description>
      <pubDate>Fri, 13 Oct 2006 16:15:13 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061013161513/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Homework for Week 6  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061013161359/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT">These questions deal with polynomial interpolation using the monomial, Lagrange, and Newton bases.   <a HREF="http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061013161359/Media/HW6.pdf">HW6.pdf</a>  </font>&nbsp;</div> ]]> </description>
      <pubDate>Fri, 13 Oct 2006 16:13:59 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061013161359/index.html</guid>
	  <enclosure url="http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061013161359/Media/HW6.pdf" length="17225" type="application/pdf" />

    </item>

    <item>
      <title><![CDATA[Readings for Week 6.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C18319642/E20061013160328/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT"> Key: </font><br /><font face="TimesNewRomanPSMT">Ell =  Randy Ellis, Scientific Computing Notes</font><br /><font face="TimesNewRomanPSMT">Rec =  Gerald Recktenwald, Numerical Methods with Matlab</font><br /><br /><font face="TimesNewRomanPSMT">Week 6:</font><br /><font face="TimesNewRomanPSMT">Topics:- Polynomial interpolation using the monomial, Lagrange, and Newton Bases.</font><br /><br /><font face="TimesNewRomanPSMT">Ell covers polynomial interpolation in classes 9, 10, and 11. There is no mention in Ell, of using Vandermonde matrices to interpolate with the monomial basis. </font><br /><br /><font face="TimesNewRomanPSMT">Rec covers the three methods of interpolation in Chapter 10 sections 10.1 and 10.2. </font>&nbsp;</div> ]]> </description>
      <pubDate>Fri, 13 Oct 2006 16:03:28 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C18319642/E20061013160328/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Lecture 14.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061011134258/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT">I reviewed the solutions to homework for weeks 4 and 5. They are attached below.</font><br /><font face="TimesNewRomanPSMT">I also briefly discussed the connection between condition number and the floating point accuracy of Gaussian elimination.    <a HREF="http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061011134258/Media/Sol4.pdf">Sol4.pdf</a>  </font><br /><font face="TimesNewRomanPSMT"> </font><br /><br /><font face="TimesNewRomanPSMT">  <a HREF="http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061011134258/Media/Sol5.pdf">Sol5.pdf</a> </font>&nbsp;</div> ]]> </description>
      <pubDate>Wed, 11 Oct 2006 13:42:58 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061011134258/index.html</guid>
	  <enclosure url="http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061011134258/Media/Sol4.pdf" length="68960" type="application/pdf" />
<enclosure url="http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061011134258/Media/Sol5.pdf" length="57438" type="application/pdf" />

    </item>

    <item>
      <title><![CDATA[Lecture 13.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061011134032/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT">Thanksgiving, no lecture. This holds a place so that lecture numbers retain the property that </font><br /><br /><font face="TimesNewRomanPSMT">Lecture# mod 3 = 1, 2, 0,  = &gt; Mon., Wed., Fri.</font>&nbsp;</div> ]]> </description>
      <pubDate>Mon, 09 Oct 2006 13:40:32 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061011134032/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Lecture 12.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061006130429/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT">We continued where I left off on Wednesday with some details on how to use permutation vectors and/or permutation matrices. </font><br /><font face="TimesNewRomanPSMT">I illustrated the use of Matlab lu and Recktenwald's lupiv. </font><br /><br /><font face="TimesNewRomanPSMT">The discussion turned to some linear algebra and properties of systems that have unique solutions, no solutions, or infinitely many solutions. Some simple two dimensional examples were given as visual tools. Floating point arithmetic and rounding error introduces the concept of systems that may be ill conditioned. </font><br /><br /><font face="TimesNewRomanPSMT">We looked at vector and matrix norms,so that we could discuss conditioning and condition numbers, and how they effect the accuracy of a solution of a system of linear equations.</font>&nbsp;</div> ]]> </description>
      <pubDate>Fri, 06 Oct 2006 13:04:29 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061006130429/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Readings for Week 5.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C18319642/E20061006111238/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT">Key: </font><br /><font face="TimesNewRomanPSMT">Ell =  Randy Ellis, Scientific Computing Notes</font><br /><font face="TimesNewRomanPSMT">Rec =  Gerald Recktenwald, Numerical Methods with Matlab</font><br /><br /><br /><font face="TimesNewRomanPSMT">Week 5: </font><br /><font face="TimesNewRomanPSMT">Topics:- Norms and condition numbers.</font><br /><br /><font face="TimesNewRomanPSMT">Class 28 of Ell covers norms and condition numbers. </font><br /><br /><font face="TimesNewRomanPSMT">Vector and matrix norms are covered in Rec sections 7.1.2 and 7.2.4 respectively. Section 8.3 of Rec discusses conditioning and the effects of small perturbations on ill-conditioned systems. </font>&nbsp;</div> ]]> </description>
      <pubDate>Fri, 06 Oct 2006 11:12:38 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C18319642/E20061006111238/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Homework Week 5.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061006111018/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPSMT">This homework is about norms and condition numbers. </font><br /><br /><br /><font face="TimesNewRomanPSMT">Recktenwald Chapter 8. questions  22 and 35. </font><br /><br /><font face="TimesNewRomanPSMT">For question 22 determine the condition numbers of the matrices used to obtain the interpolating parabola. </font><br /><br /><font face="TimesNewRomanPSMT">For question 35 repeat the experiments using cond(A,1) and cond(A,inf).</font><br />&nbsp;</div> ]]> </description>
      <pubDate>Fri, 06 Oct 2006 11:10:18 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C2006674696/E20061006111018/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Lecture 11.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061004161052/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPS-BoldMT"><b>LU Decomposition and Gaussian Elimination</b></font><br /><br /><font face="TimesNewRomanPS-BoldMT"><b>Elimination Phase</b></font><br /><font face="TimesNewRomanPSMT">I reviewed the code for the elimination phase of LU decomposition.</font><br /><br /><font face="TimesNewRomanPS-BoldMT"><b>Backward (Forward)  Substitution </b></font><br /><font face="TimesNewRomanPSMT">I went over the code for backward substitution and mentioned that forward substitution can be coded in a similar way.</font><br /><br /><font face="TimesNewRomanPS-BoldMT"><b>Partial Pivoting</b></font><br /><font face="TimesNewRomanPSMT">I showed, through an illustrative example, how partial pivoting may be necessary to obtain a solution to a system of linear equations (if a solution exists). I then showed how row swaps are recorded in a permutation matrix for use with LU decomposition.</font>&nbsp;</div> ]]> </description>
      <pubDate>Wed, 04 Oct 2006 16:10:52 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061004161052/index.html</guid>
	  
    </item>

    <item>
      <title><![CDATA[Lecture 10.  ]]></title>
      <link>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061002165839/index.html</link>
      <description> <![CDATA[<div><font face="TimesNewRomanPS-BoldMT"><b>Solving systems of linear equations using Gaussian elimination/L U decomposition.</b></font><br /><br /><font face="TimesNewRomanPSMT"> It appears that everyone in the class has taken a course in linear algebra and has already seen Gaussian elimination at least once. </font><br /><font face="TimesNewRomanPSMT">Through the use of an example we saw how Gaussian elimination followed by back substitution can be used to solve a system of linear equations. I also presented a slight variant of Gaussian elimination where we save the multipliers so that we can compute a  lower triangular matrix L and an upper triangular matrix U such that LU = A. In this way we can use L and U to solve a system Ax = b. We also observed that having L and U at hand allows us to subsequently solve for Ax= b<sub>i </sub>for any other column vectors  b<sub>i</sub>. </font><br /><font face="TimesNewRomanPSMT">I began the lecture with a problem from the field of chemistry where one determines the components in an ion using mass spectrometry. I have attached a copy of the presentation.</font><br /><br /><font face="TimesNewRomanPSMT">  <a HREF="http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061002165839/Media/Mass%20Spectrometry.pdf">Mass Spectrometry.pdf</a>  </font>&nbsp;</div> ]]> </description>
      <pubDate>Mon, 02 Oct 2006 16:58:39 -0400</pubDate>
	  <guid>http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061002165839/index.html</guid>
	  <enclosure url="http://www.cs.queensu.ca/home/daver/B271/C1354135880/E20061002165839/Media/Mass%20Spectrometry.pdf" length="2530293" type="application/pdf" />

    </item>
  
  </channel>
</rss>
