MA 602: Advanced Numerical Methods in Engineering

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

MA 602: Advanced Numerical Methods in Engineering

ASSIGNMENT # 1

January 7, 2015

Question 1 Compute f (0.8) and f (0.9) from the following tabulated data by
quadratic interpolation.
xi
fi

0.5
0.479

1.0
0.841

2.0
0.909

Question 2 Compute f (6.5) from the following tabulated data by cubic


interpolation.
xi
fi

6.0
0.1506

7.0
0.3001

7.5
0.2663

7.7
0.2346

Question 3 Forf (x) = ln x, compute f (1.5) from the following tabulated data
by using cubic interpolation.
f (1) = 0 f 0 (1) = 1 f (2) = .693147 f 0 (2) = 0.5
Also, estimate the error in computing this value.
Question 4 Forf (x) = cosh x, compute f (0.56) from the following tabulated
data by using the forward difference table.
xi
fi

0.5
1.127626

0.6
1.85465

0.7
1.255169

0.8
1.337435

Also, estimate the error in computing this value.


Question 5 Interpolate the function f (x) = x4 by a cubic spline function p(x)
corresponding to the node points x0 = 1, x1 = 0, x2 = 1. The end point
conditions (called clamped conditions) are p0 (1) = f 0 (1); p0 (1) = f 0 (1).
Plot f (x) and p(x).
Question 6 (i) Let a funcion f (x) be defined on the interval [a, b]. Interpolate
the function f on [a, b] by a linear polynomial. and hence deduce the following
trapezoidal rule
Z b
(f (a) + f (b))(b a)
f dx
2
a
(ii) Let xn be equally spaced points
x0 = a, x1 = a + h, x2 = a + 2h, , xn = b = a + nh
Derive the following composite trapezoidal rule
Z
a

1
1
f dx h[ f (a) + f (x1 ) + f (x2 ) + f (xn1 ) + f (b)]
2
2

Question 7 (i) By using Lgarange polynomials, interpolate the function f by


a quadratic polynomial at equally spaced points x0 , x1 .x2 and deduce the
following Simpsons rule
Z x2
h
f dx [f0 + 4f1 + f2 ], (h = x1 x0 )
3
x0
(ii) Let xn be equally spaced points
x0 = a, x1 = a + h, x2 = a + 2h, , x2n = b = a + 2nh
Derive the following composite trapezoidal rule
Z

f dx
a

h
[f0 + 4f1 + 2f2 + + 2f2n2 + 4f2n1 + f2n ]
3

You might also like