Tute 7

You might also like

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

BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, PILANI

KK BIRLA GOA CAMPUS


SECOND SEMESTER 2013-2014

Numerical Analysis
Tutorial7
Use 5-digit floating point arithmetic with rounding for all the problems.
1. Construct the piecewise linear interpolating polynomial for the given data
x

-2

f (x)

2. What should be minimum number of tabular points, such that piecewise linear interpolation of
f (x) = cos x in the interval I = [0, ], yields values correct up to 6 decimal places?
3. Find the minimum number of tabular points required for the function, f (x) = 43 x3 + 5 ln x to be
interpolated by piecewise quadratic polynomials over the interval [10, 20], so that the values of
f (x) are correct to 8-significant digits.
4. Construct a cubic spline interpolating polynomial for the data:
x

f (x)

(a) With natural boundary conditions (Natural Cubic Spline) and (b) with Clamped boundary
conditions (S (1) = 2 and S (3) = 1).
5. Generate a natural cubic spline for the data
x

-1

f (x)

6. Find the minimum number of equispaced tabular points required for piecewise cubic interpolation
of the function f (x) = e2x +

22 4
3 x

on the interval [0, 3] to get 4-decimal place accuracy.

7. A car travelling along a straight road is clocked at a number of points. The data from the
observations are given in the following table, where the time is in seconds, the distance is in feet,
and the speed is in feet per second
Time

13

Distance

225

383

623

993

Speed

75

77

80

74

72

Use cubic spline to predict the position of the car and its speed when t = 10 seconds. Use 5-digit
floating point arithmetic with chopping.

8. Using Taylor series expansion (central formula) and Newton forward divided dierence formula,
compute first derivative at x = 2 for the tabulated function:
x

f (x)

10

9. Given the values of empirical function f (x) for certain value of x


x

1.0

1.2

1.4

1.6

1.8

2.0

f (x)

0.0000

0.1280

0.5440

1.2960

2.4320

4.0000

Find the first and second derivatives of the function f (x) at the point x = 1.1.
10. Find f (x) corresponding to the data points (0, 1), (1, 1), (2, 10), (3, 40) and (4, 85) at x = 1.5.
11. Compute the first and second order derivatives of the function y = f (x) at x = 1 and x = 2 by
Newtons forward dierence formula using the following table:
x

3.9183

4.5212

5.2535

6.1523

7.2498

8.5892

12. The distance y(t) traversed in time t by a point moving in a straight line is given below:
t (sec.)

0.01

0.02

0.03

0.04

0.05

0.06

y(t)

0.00

1.53

6.04

13.41

23.42

35.74

50.12

Find the approximate velocity


interpolation.

dy
d2 y
and acceleration
at t = 0.01 using Newtons forward
dt
dt2

THE END

You might also like