CS 314 Notes for 7/7/2003 to 7/11/2003
Quick Links:

7/7/2003

Solutions of Non-linear Equations

Newton’s Method

Interpolation and Polynomial Approximation
--We Want to approximate functions using polynomials
--Used to computer other functios such as sin(x), cos(x), etc.
Taylor Expansion


Horner's Method for evaluating polynomials (also called Nested Multiplication)


7/8/2003 Methods for evaluating Polynomials

Lagrange Approximation


7/9/2003 Methods for evaluating Polynomials

Newton Polynomial Approximation


7/10/2003
Polynomial Approximation Continued

Pade Approximations

Example of Pade Approximation Part a: Find Pade's approximation R2,2(x) for f(x) = ln(1+x)/x Example Part b: Give Approximation from above obtain an approximation for ln(1+x)


7/11/2003

Curve fitting
Given a set of points (x0,y0)...(xn,y0) come up with a curve that best fits the points.
In polynomial approximation the polynomial passes through all points, but in curve fitting it does not pass through all points but atleast close to them.
Ex: An experimental procedure gives a set of points and you would like to obtain a function y = f(x) that relates all the points. Least Squares Line

Example of Least Square Line
Given xk and yk (Use these values to find the missing values in equations (1) and (2)
k xk yk xk2 xk*yk
1 6 7 36 42
2 9 6 81 54
3 14 3 196 42
4 17 1 289 17
5 21 0 441 0
Sum: 67 17 1043 155
Curve fitting to the curve: f(x) = Axm Example:
k xk yk xk6 xk3*yk
1 2 5.9 47.2 64
2 2.3 8.3 100.86 14.7
3 2.6 10.7 188.06 308.92
4 2.9 13.7 334.13 599.82
5 3.2 17 557.06 1073.74
Sum: 1227.44 2056.28