Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Assignment (Final)

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

Assignment (Final term)

1. Average price, P, of a certain type of second-hand car is believed to be related to its age, t
years, by an equation of the form
50
P= t
a+ b e 4
Where a and b are constants. Data from a recent newspaper give the following average
price (in Taka) for used car of this type,

t (yrs) 2 4 6 8
P (lac) 20.50 17.25 14.50 11.75

(i) Estimate the values of a and b rounded to 3 significant figures.


(ii) Estimate the values of a car of this type that is 10 years old and the original new price.

2. The table below shows the values of f (x) at different values of x:


x 0.8 1.0 1.2 1.4 1.6
f(x) 0.954 1.648 2.623 3.947 5.697
(a) Using three-point central difference formula estimate f ' ( 1 )∧f ' (1.3)
(b) Using two-point forward difference formula and extrapolation estimate f ' (0.8).
(c) Use three points central difference formula and extrapolation to estimate f ' ( 1.2 ).
(d) Use three points backward formula to estimate f ' ' (1.6).
(e) Write down MATAB codes using “sp=spline(x,y)”, “fnder(sp, dorder)” and “fnval(sp,
xo)” to estimate the values of f ' ( x )∧f ' ' (x ) at
x=0.9 , 1.1∧1.42 .

3. The table below shows the values of f ( x ) at different values of x:


x 1.0 1.2 1.4 1.6 1.8
f(x) 1.831 2.592 3.515 4.643 5.926
1.8

Evaluate ∫ f ( x ) dx using Tapezoidal rule with 1, 2 and 4 subintervals.


1.0

Improve your results using Romberg integration.

4. The table below shows the values of f ( x ) at different values of x:

x 1.2 1.4 1.6 1.8 2.0


f(x) 3.728 4.124 4.525 5.123 5.626
2 .0
(i) Use Trapezoidal rule and Richardson’s extrapolation to estimate
∫1 .2 f ( x) dx .
2 .0
(ii) Use Simpson’s rule and Richardson’s extrapolation to estimate
∫1 .2 f ( x) dx .
5. Evaluate the following integrals using MATLAB commands.
2 6 1

(a) ∫ ∫ ∫ ¿ ¿ ¿¿
0 3 −1

2 3 1

(b) ∫∫∫ xyz dzdydx


0 0 0

6. Given the initial value problem y ' =2 x+ x2 y with y ( 0 ) =−1.


(a) Estimate the values of y (0.2) using the Runge-Kutta method of order two.
(b) Estimate a value of y (0.2) using the Runge-Kutta method of order four.
dy dz
= y 2 + xz + x 2 = y +2 x + yz
7. Given the system dx and dx
with the initial conditions y ( 1 )=−1 and z (1 )=1.
(a) Estimate y(1.1) and z(1.1) using the Runge-Kutta method of order two.
8. Consider the boundary value problem
'' '
y −2 y +2 y=x , y ( 0 )=1 , y (1)=2.
(a) Derive a recurrence relation for the above differential equation using three point central
difference formula for derivative with h=1/3.
(b) Using the above finite difference formula solve the above boundary value problem.

You might also like