Escolar Documentos
Profissional Documentos
Cultura Documentos
Using the m-file, solve for the Lagrange polynomials P1(x), P2(x), P3(x), and P4(x) of the following
functions within the respective given intervals:
1. f ( x ) = 8 x 2 e−2 x sin ( 3x ) 0 ≤ x ≤ 8
2. f ( x ) = 16 x3e−4 x cos 2 x 5 ≤ x ≤ 10
3. f ( x ) = 16 − 9e−3 x tanh 2 x 1 ≤ x ≤ 12
4. f ( x ) = 12 0 ≤ x ≤ 36
Capture screenshots of your Command Window depicting the result of using the m-file (see samples on
the following pages). Paste these screenshots along with the manual solution of the functions using the
same method on the report file document (use Equation Editor for proper presentation of solution).
Sample problem and output:
0.8
f(x)
0.7
0.6
0.5
0.4
10
10
10
f(x)
10
10 Actual Points
1st order
2nd order
10
3rd order
4th order
10
0 2 4 6 8 10 12
x