Write an algorithm and program to implement Lagrange interpolation method.[10]
2.
Consider the following data points. Estimate f(0.6) using Newton's interpolation formula.
xf(x)0.12.680.23.040.33.380.43.690.53.97
[5]
3.
What is regression analysis? Fit a second order polynomial for the following data values.
xy21.442.062.482.6102.8
[5]
4.
Given the data points below, find cubic spline which belongs to 1≤x≤3 and estimate f(2) using cubic splines.
xf(x)1.01.53.04.54.09.0
[5]
Numerical Differentiation and Integration
1.
What is numerical differentiation? The table below gives the values of distance travelled by a vehicle at various time intervals. Estimate the velocity and acceleration at x=4.
Time(x)Distance(y)1021458211027
[5]
2.
What is an application of numerical integration? Find the value of the integral using Simpson's 3/8 rule with n=6.
∫12xexdx
[5]
Solution of Nonlinear Equations
1.
What are inherent errors? Derive the Newton Raphson method for solving non-linear equation and using this method solve the following equation up to 3 decimal places:
x2−5x+6=0
[10]
Solution of Ordinary Differential Equations
1.
What is differential equation? Differentiate between ODE and PDE with example.[5]
2.
Solve dxdy=yx, y(0)=1, at x=0.4 using Runge-Kutta's 4th order method.
dxdy=yx,y(0)=1,x=0.4
[5]
3.
Solve the Poisson equation with boundary conditions:
∂x2∂2u+∂y2∂2u=−64xy,0≤x≤1,0≤y≤1
u(0,y)=0,u(x,0)=0,u(1,y)=150,u(x,1)=150,h=31
[5]
Solving System of Linear Equations
1.
What are the limitations of direct methods for solving a system of linear equations? How does Gauss Seidel method differ from Jacobi iteration? Solve the following system of linear equations using Jacobi iteration method:
2x−7y−10z=−17
5x+y+3z=14
x+10y+9z=7
[10]
2.
Solve the following system of linear equations using Gauss-Jordan elimination method: