Ass Dca2101
Ass Dca2101
Ass Dca2101
2 3 n n
(x−x 0)f ' (x 0) (x−x 0 ) f ' ' ( x 0) ( x−x 0 ) f ' ' ' (x 0) ( x−x 0) f ( x0 )
f ( x)=f ( x 0) + + + + ............. +
1! 2! 3! n!
(x−3) f ' (3) ( x−3)2 f ' ' (3) (x−3)3 f ' ' ' (3) (x−3)n f n (3)
f ( x)=f (3) + + + + ............. +
1! 2! 3! n!
f ' ( x ) = 3 x 2−20 x
At x 0=3 we have,
f ( 3 ) = 27−90+ 6=−57
f ' ( 3 ) = 27−60=−33
Where we have,
We know that,
If f(x, y, z) be a function of 3-variables (x, y, z). Let Δ f represents the error f,
Δf = | ∂∂ fx ×Δ x | + | ∂∂fy ×Δ y | + | ∂∂ fz ×Δ z | ——(3)
∂f 2 2
= 6 x y −14 x z
∂x
∂f
= 6 y x 2 +10 y z 2
∂y
∂f
= 10 z y 2−14 z x 2
∂z
from equ(2)
Now,
f ( 1,1,1 )= 39
Δf 0.336
Er = = = 0.00861538461
f 39
(Answer #2)
so: 8,12,19,29,42, X
given that the second-order difference is constant, constructing a difference table
Difference table,
X Y ∆ ∆^2 ∆^3
1 8 4 3 0
2 12 7 3 0
3 19 10 3 X-58
4 29 13 X-55
5 42 X-42
6 X
Let a function f(x) is given at point (0,2), (2,10), (4,15), (6,18), (8,22), (10,10). Find .
∇ y 4 ,∇ 3 y 3
The F(x) is given at points (0,2), (2,10), (4,15), (6,18), (8,22), (10,10),
which mean,
x 0=0 , y 0=2 ,
x 1=2 , y 1=10 ,
x 2=4 , y 2=15 ,
x 3=6 , y3 =18 ,
x 4=8 , y 4 =22 ,
x 5=10 , y 5=10
So, backward differences of 1st order.
∇ y 1= y 1− y 0 =10−2=8 ,
∇ y 2= y 2− y1 =15−10=5 ,
∇ y 3= y 3 − y 2=18−15=3 ,
∇ y 4 = y 4 − y 3=22−18=4 ,
∇ y 5= y 5 − y 4=10−22=−12
2
∇ y 2=∇ y 3 −∇ y 2=3−5=−2 ,
2
∇ y 3=∇ y 4−∇ y3 =4−3=1 ,
2
∇ y 4 =∇ y 5−∇ y 4=−12−4=−16 ,
3 2 2
∇ y 2=∇ y 3 −∇ y 2=3 ,
3 2 2
∇ y 3=∇ y 4−∇ y 3=−17 ,
f (3) < 0 < f (4) Therefore a root of f(x) lies between 3 and 4, so x 0=3
f (x n )
x(n+1) = x n − where n = 0,1,2,3….. & f ' (x n)≠0
f '( x n )
x 2n−12
x(n+1) = x n − —— (2)
2 xn
SET - 2
(Answer #4)
1
x=( )∗(95−11 y +4 z) ——(1)
83
1
y=( )∗( 104−13 z−7 x) ——(1)
52
1
z=( )∗( 71−8 y−3 x) ——(1)
29
Now, from equation(1) and Substituting initial approximation vector, we gets the 1st iteration.
95
x 1=( )=1.1445 ——(2)
83
104
y 1=( )=2 ——(2)
52
71
z 1=( )=2.4482 ——(2)
29
Now, from equation(1) and Substituting equation (2), we gets the 2nd iteration.
1 1
x 2=( )∗(95−11∗2+ 4∗2.4482)=( )∗( 82.7928)=0.9975 ——(3)
83 83
1 1
y 2=( )∗(104−13∗2.4482−7∗1.1445)=( )∗(64.1928)=1.2344 ——(3)
52 52
1 1
z 2=z=( )∗(71−8∗2−3∗1.145)=( )∗(51.565)=1.7781 ——(3)
29 29
Now, from equation(1) and Substituting equation (3), we gets the 3rd iteration.
1 1
x 3=( )∗(95−11∗1.2344+ 4∗1.7781)=( )∗(88.534)=1.0666 ——(4)
83 83
1 1
y 3=( )∗(104−13∗1.7781−7∗0.9975)=( )∗(73.9022)=1.4211 ——(4)
52 52
1 1
z 3=z=( )∗( 71−8∗1.2344−3∗0.9975)=( )∗( 58.1323)=2.0045 ——(4)
29 29
Now, from equation(1) and Substituting equation (4), we gets the 4th iteration.
1 1
x 4=( )∗(95−11∗1.4211+ 4∗2.0045)=( )∗(87.3859)=1.052 ——(5)
83 83
1 1
y 4 =( )∗(104−13∗2.0045−7∗1.0666)=( )∗(70.4753)=1.355 ——(5)
52 52
1 1
z 4=z =( )∗(71−8∗1.4211−3∗1.0666)=( )∗(56.4314)=1.945 ——(5)
29 29
Now, from equation(1) and Substituting equation (5), we gets the 5th iteration.
1 1
x 5=( )∗(95−11∗1.355+4∗1.945)=( )∗(87.875)=1.058 ——(6)
83 83
1 1
y 5=( )∗(104−13∗1.945−7∗1.052)=( )∗(71.351)=1.372 ——(6)
52 52
1 1
z 2=z=( )∗(71−8∗1.355−3∗1.052)=( )∗(57.004)=1.9655 ——(6)
29 29
the 4th and 5th iteratios given almost the same values,
Hence the solution to the given system of equations, are:
(Answer #5)
y=ax+ b
∑ y = nb + a ∑ x
∑ xy = b ∑ x + a ∑ x2
From the given data, we get,
x y xy x
2
82 = 6b + 10.5a ——(1)
127 = 10.5b + 22.75a ——(2)
861 110.25∗a
127= − +22.75 a
6 6
127=143.5−18.375 a+22.75 a
127=143.5−4.375 a
(143.5−127)
a= =3.771
4.375
(10.5∗3.771)
b=13.667− =13.667−6.56=7.107
6
Therefore the required straight line that fits for the given data is,
y = 3.771x + 7.107
(Answer #6)
Let consider,
x y
21 = x−1 18.4708 = y−2
25 = x−1 17.8144 = y−1
29 = x 0 17.1070 = y 0
33 = x 1 16.3432 = x 1
37 = x 2 15.5154 = x 2
where,
x '−x 0
u stands for: ,
h
and we have given h = x 2−x1 =4 & x '=0
0−29
So, u= =−7.25
4
−7.25(−7.25−1)×−0.056
y = 17.1070 + −7.25∗−0.7638 +
2!
−7.25(−7.25−1)(−7.25+1)×(−0.008) −7.25(−7.25−1)(−7.25+1)(−7.25−2)×(−0.003)
+ +
3! 4!
y = 21.0359988