Docsity

Polynomial Interpolation - Computational Methods - Project 3 | MCEN 3030, Study Guides, Projects, Research of Mechanical Engineering

Toggle sidebar
bg1
Computational Project # 3
Due March 4
Do a study of the effect of the choice of polynomial interpolation points in the interval
[
]
0,1
. Use 3 point sets of N+1 points each for interpolation:
1) equally-spaced
, 0, ,
k
k
x k N
N
= = … and
2) Chebyshev 1 1
cos , 0, ,
2 2
k
k
x k N
N
π
= − =
… and
3) arc sine points
1
1 1 2
2
k
k
x k N
N
π
−
= + − =
…
For each of the functions:
i.
2
1
1
x
+
ii.
1
2
x
−
iii.
2
1
x
−
a) compute polynomial interpolants on the 3 point sets for polynomial degree N = 1,
5, 10, and 15, and estimate the maximum error the interpolant makes on the entire
interval
[
]
0,1
;
b) plot these errors and estimate the order of convergence of the error as a function
of N;
c) discuss the effectiveness of the choice for interpolation points.
You can use the Lagrange interpolation code that we developed during the class.
However, put the comment in the very first line that this is not your code.
P.S. Bring your solution to class. Email your code to [email protected]. The
program that you send should be a working program. All the codes will be checked
whether they run or not. If they are erroneous, but run, points will be taken for the errors.
If the code does not run (it has some syntax errors), an additional 25% will be taken off.
The goal of this class is for you to be comfortable solving engineering problems. Please
take your time and learn how to trust the computer.

Partial preview of the text

Download Polynomial Interpolation - Computational Methods - Project 3 | MCEN 3030 and more Study Guides, Projects, Research Mechanical Engineering in PDF only on Docsity!

Computational Project # 3

Due March 4

Do a study of the effect of the choice of polynomial interpolation points in the interval

[ 0,1]^. Use 3 point sets of N+1 points each for interpolation:

  1. equally-spaced

k^ ,^ 0,^ ,

k x k N N

= = … and

  1. Chebyshev 1 1 cos , 0, , 2 2 k

k x k N N

… and

  1. arc sine points (^1 1) sin 1 2 1 , 0,. 2 k

k x k N

π N

= + −^ ^ −  =

For each of the functions:

i. (^2)

1 + x

ii.

x −

iii. 1 − x^2

a) compute polynomial interpolants on the 3 point sets for polynomial degree N = 1, 5, 10, and 15, and estimate the maximum error the interpolant makes on the entire

interval [ 0,1] ;

b) plot these errors and estimate the order of convergence of the error as a function of N; c) discuss the effectiveness of the choice for interpolation points.

You can use the Lagrange interpolation code that we developed during the class. However, put the comment in the very first line that this is not your code.

P.S. Bring your solution to class. Email your code to [email protected]. The program that you send should be a working program. All the codes will be checked whether they run or not. If they are erroneous, but run, points will be taken for the errors. If the code does not run (it has some syntax errors), an additional 25% will be taken off. The goal of this class is for you to be comfortable solving engineering problems. Please take your time and learn how to trust the computer.