Comp It Assignment
Comp It Assignment
Engineering College
ASSINMENT-1
Sem IV Numerical and Statistical methods
Fitting of a curve
Q.1. By the method of least squares, find the straight line that best fits the following data :
X 1.53 1.78 2.60 2.95 3.42
Q.2. A simply supported beam carries a concentrated load P(lb) at its midpoint. Corresponding to
various values of P, the maximum deflection Y(in) is measured. The data is given below:
P 100 120 140 160 180 200
Q.3. Obtain the least squares straight line fit to the following data :
X 0.2 0.4 0.6 0.8 1
Q.4. Fit a second degree parabola y a x 2 b x c in the least square sense for the following data
and hence estimate y at x = 6.
X 1 2 3 4 5
Y 10 12 13 16 19
Q.5. Fit a second degree curve of the form y b x 2 a x to the following data by the method of
least squares.
X 1 2 3 4 5
Q.6. Fit a curve of the form y a b x for the data and hence find the estimation for y when x = 8.
X 1 2 3 4 5 6 7
Y 28 30 32 36 51 58 69
V. V. P. Engineering College
ASSIGNMENT-2
Sem IV Numerical and Statistical methods
Algebraic & transcendental
Q.1. Using Bisection/Bolzano method , Find the roots following equation correct up to 3
decimal places :
A) 2 x3 x2 20x 12 0
B) x2 4 x 10 0
B) x loge x 1.2
Q.2. State and Prove Newton-Raphson method.
Q.3. Using Newton-Raphson method, Find the roots following equation :
A) x cos x correct to 3 decimal places.
B) x 2sin x 0 near x0 . correct to 4 decimal places.
2
C) x sin x cos x 0 correct to 5 decimal places.
Q.4. Using Newton-Raphson method, Find the iterative formula of :
A) N and find 5 and 27
B) 3 N and find 3 82
1 1 1
C) and find and
N 7 365
Q.5. State and Prove Secant method in detail.
Q.6. Using Secant method , Find the root of the equation :
A) x 2 4 x 10 0 ( x 4, x 2 ) upto 6 iterations
0 1
B) e x 3x sin x 0 ( x0 0, x1 1 ) upto 4 decimal places
C) x3 2 x 5 0 ( x0 2, x1 3) upto x3
Q.7. Using Regula Falsi method , Find the root of the equation :
A) xe x 2
B) cos x 3 x 1
A) 2 x log x 6
V. V. P. Engineering College
ASSIGNMENT-3
Sem IV Numerical and Statistical Methods
Forward, Backward, Central
Q.1. Define:
1) Forward Difference Operator
2) Backward Difference Operator
3) Central Difference Operator
4) Average Operator
Q.2. Evaluate: 1) tan 1 x
1
2) n (e x ) 3)
f ( x)
f ( x)
4) 5) n sin(ax b)
g ( x)
6) 10 (1 ax)(1 bx2 )(1 cx3 )(1 dx4 ) 7) 4 (1 x )(1 2 x )(1 3x )(1 4 x )
1
Q.3. Verify: 1) 2) EE E 2 3) E ehD
4) h D sinh 1( ) 5) 2 6)
Q.4. Find the cubic Splines and evaluate y(1.5) and y '(3).
X 1 2 3 4
Y 1 2 5 11
Q.5. Obtain cubic Splines for every subinterval from the following data:
X 0 1 2 3
Y 1 2 33 244
Q.6. Find the linear polynomial approximation to the function x3 2 on [1,2] by Chebyshev
polynomials
Q.7. Find the linear polynomial approximation to the function x3 on [0,1] by Chebyshev
polynomials
V. V. P. Engineering College
ASSIGNMENT-4
Sem IV Numerical and Statistical Methods
Forward, Backward
Q.2. The area A of circle of diameter d is given for the following table :
d 80 85 90 95 100
A 5026 5674 6362 7088 7854
Q.3. Find the number of men getting wages between Rs. 10 and Rs. 15 from following table :
Wages in Rs. 0-10 10-20 20-30 30-40
Frequency 9 30 35 42
Q.5. Find a polynomial of degree two which takes the following values using Newtons Backward
interpolation formula:
X 0 1 2 3 4 5 6 7
Y 1 2 4 7 11 16 22 29
Q.6. Using Newtons Backward formula, find the polynomial of degree 3 passing through (3,6),
(4,24), (5,60) and (6,120).
Q.7. Using Gausss forward formula, evaluate f(3.75) from the table:
X 2.5 3.0 3.5 4.0 4.5 5.0
Y 24.145 22.043 20.225 18.644 17.262 16.047
Q.8. Apply Gausss backward formula to find sin 450 form the following table:
0 20 30 40 50 60 70 80
sin 0.34202 0.502 0.64279 0.76604 0.86603 0.93969 0.98481
V. V. P. Engineering College
ASSIGNMENT-5
Sem IV Numerical and Statistical Methods
Bessel, Stirling, Lagrange
Q.7. Using Newton Divided Difference formula, evaluate f(8) and f(15), given :
X 4 5 7 10 11 13
F(x) 48 100 244 950 1210 2028
Q.8. Using Newton Divided Difference formula,find f(x) from following table:
X 0 1 2 4 5 6
F(x) 1 14 15 5 6 19
V. V. P. Engineering College
ASSIGNMENT-6
Sem IV Numerical and Statistical Methods
Gauss Seidel & Elimination
1 3 1 1 6 1
E) 3 2 4 D) 1 2 0
1 4 10 0 0 3
V. V. P. Engineering College
ASSIGNMENT-7
Sem IV Numerical and Statistical methods
Numerical Integration
6
1 1
Q.1. Evaluate 0 1 x dx taking h=1 using Simpsons
3
rule. Hence Obtain an approximate value
of ln7.
1.3
0.5 e
x2
Q.2. Evaluate dx using Simpsons rule with four strips and eight strips.
1
x2 1
Q.3. Evaluate
0
e dx by using trapezoidal rule and Simpsons rule with n=10. (June 2010)
3
6 3 1
Q.4. Evaluate the integral
2
(1 x 2 ) 2 dx by Simpsons
3
rule with taking 6 subintervals. Use
3
1 3
Q.6. Evaluate 0 1 x dx taking n=6 using Simpsons
8
rule and calculate ln2.
1.2
Q.7. Evaluate 0 ln(1 x 2 ) dx using Simpsons rule.
5.2
Q.8. Calculate the value of integral ln x dx (Nov 2011)
4
1
dx
Q.9. Evaluate 1 x taking 7 ordinates using Trapezoidal rule.
0
1
Q.10. Apply Trapezoidal and Simpson rule for 1 x 2 dx .
0
1
0 exp( x
2
Q.11. Evaluate ) dx by using Gaussian Integration formula for n=3.
2
Q.12. Evaluate 0 sin x dx by using Gaussian Quadrature three point formula.
1
x
cos x e dx by using Gauss-Legendre for four point formula.
2
Q.13. Evaluate
0
1
1
Q.14. Evaluate 1 x 2 dx
by using Gaussian Integration for n=2 and n=3.
1
2
Q.15. Evaluate 0 sin d by using Simpsons rule with h
12
.
3
Q.16. Find an approximate value of loge 5 by calculating to 4 decimal places by Simpsons rule,
8
5
dx
0 4 x 5 dividing the range into 10 equal parts.
3
3 1
0 sin x
2
Q.17. Evaluate dx by using Simpsons rule and Simpsons rule and compare result
8 3
with n=6.
1
dt
Q.18. Evaluate 1 t by the Gaussian formula. (Nov 2011)
0
3
Q.19. Evaluate sin x dx by using Gaussian Quadrature five point formula. ( Nov 2010)
1
Q.20. A river is 80 meters wide. The depth d in meters at a distance x meters from one bank is
given by the following table. Calculate the area of croos section of the river using Simpsons
1
. (Nov 2011)
3
X 0 10 20 30 40 50 60 70 80
D 0 4 7 9 12 15 14 8 3
V. V. P. Engineering College
ASSIGNMENT-8
Sem IV Numerical and Statistical Methods
Approximation of differential equation
Q.1. Using Taylor Series method, find correct to four decimal places
A)
dy x y and y(1) 0
dx
B) y ' 2 y 3 e x and y (0) 0
C) y ' x 2 y 1 and y (0) 1 and also find y (0.03)
D) y ' x 2 y 2 and y (0) 1 (June 2011)
E) y ' xy y 2 and y (0) 1 and also find y ( x ) at x 0.3
Q.7. Using Runge-Kutta method of 4th order solve the following O.D.E.
A) y ' x
y and y(1) 2
x
B) y '
1
and y(0) 1 (Take h = 0.5)
x y
y2
C) y ' x2 and y (0) 1
4
D)
dy x y and y(0) 1 find y(0.2) (Take h 0.1)
dx
E)
dy x y 2 and y(0) 1.(Take h 0.1)
dx
dy
F) 1 y 2 and y(0) 0 and tabulate the solution at x 0.1, 0.2
dx