Professional Documents
Culture Documents
NAME
ROLL NO
PROGRAM BCA
SEMESTER III
COURSE CODE & NAME DCA2101 &
COMPUTER ORIENTED NUMERICAL
METHODS
SET-I
SOLUTION 1(a)
Prove that
δ = (E1/2 – E-1/2),
1
δμ = (∆+ ∇)
2
Hence, proved L.H.S. is equal to R.H.S.
SOLUTION 1(b) -
∆ ∇ = (E – 1) (1 – E -1)
= (E – 1) [1 – (1/E)]
= E – 1 – 1 + (1/E)
= (E – 1) – [1 – (1/E)]
= ∆ – ∇ = L.H.S
Hence, proved
SOLUTION 2- Using the Gauss elimination method, firstly creating the augmented matrix for
the given pair of linear equations
| |
2 1 4 :12
0 9 −9 :9
8 −3 2 :20
| |
2 1 4 :12
0 9 −9 :9
0 −7 −14 :−28
| |
2 1 4 :12
0 1 −1 :1
0 −7 −14 :−28
| |
2 1 4 :12
0 1 −1 :1
0 0 −21 :−21
2x + y + 4z = 12 …….. (1)
z=1
y=2
x=3
SOLUTION 3-
Given Table that consists the value of x and y variable
X 1 3 4 6 8 9 11 14
Y 1 2 4 4 5 7 8 9
= (1+3+4+6+8+9+11+14) / 8
=7
= (1+2+4+4+5+7+8+9) / 8
=5
1 1 7 5 -6 -4 36 24
3 2 7 5 -4 -3 16 12
4 4 7 5 -3 -1 9 3
6 4 7 5 -1 -1 1 1
8 5 7 5 1 0 1 0
9 7 7 5 2 2 4 4
11 8 7 5 4 3 16 12
14 9 7 5 7 4 49 28
Slope (m) = sum of the [x-(x_a)][ y-(y_a)] / sum of the [x-(x_a)]2
= 84 / 132
5 = (0.63)(7) + b
So, the best fitting straight line is y = 0.63x +0.59 …….. (y = mx+b)
SET-II
SOLUTION 4- With the use of given data table of x and y
As we can see the given data, value x=15 is lie between first 2 intervals 10 to 20
f(15) = 46 + 10
f(15) = 56
dy 2 2
SOLUTION 5- Given terms- =x + y and y ( 0 )=1
dx
y(x) = y(x0) + y′( x0)(x− x0) + (y′′( x0)/2!) (x− x0)2 + (y′′′( x0)/3!) (x− x0)3+…
dy 2 2
These are the derivatives of given equation =x + y
dx
At x=0, y(0) =1
dy/dx|x=0 = 1
d2y/dx2|x=0 = 2(1) + 0 = 2
On solving:
y(0.25) = 1.067
y(0.5) = 1.291
SOLUTION 6- Using the Runge-Kutta fourth order method, we have to find the approximate
value of y at x = 0.1
Assume x0 = 0
x1 = x0 + h = 0 +0.1 = 0.1
y1 = y0 + (K1+2K2+2K3+K4)/6
K1 = hf(x0 , y0)
K1 = -0.1 …..(a)
K2 = (0.1)(0.0025 – 0.95)
K2 = -0.09475 …..(b)
K3 = -0.095013 …..(c)
K4 = hf(x0 + h , y0 + K3)
K4 = (0.1) f(0+0.1 , 1+(-0.095013))
K4 = (0.1) (-0.894988)
K4 = -0.089499
y1 = y0 + (K1+2K2+2K3+K4)/6
y(0.1) = 1 + ( -0.5690250)/6
y(0.1) = 1 – 0.0948375