Assignment2
Assignment2
𝑓=
u− vw
v
2 -w
∆u ⁓
=0.1 u =1.5
⁓
⁓
∆ v =0.006 v
⁓
=-2
∆w =0.02 w =3
⁓ ⁓
At final we get
F(u ,w , v )=-1.125
⁓ ⁓ ⁓
∆F(u ,w ,v )=0.03725
⁓ ⁓ ⁓
3 4 3
x y +z y
f(x,y,z)= z
∆x ⁓
=0 x =1
⁓
∆ y =0
⁓
.2 y
⁓
=2
∆z =0.3 z =1
⁓ ⁓
At final we get
F(x , y ,z )=18
⁓ ⁓ ⁓
∆F(x , y ,z )=2.2 ⁓ ⁓ ⁓
Question 4:
1-st iteration
xL =2 and xu = 3 ==> xr =2.5
F(xL) =-1 f(xu)=4 f(xr)=1.25
f(xr).F(xL) <0 then take xu =xr
2-nd iteration
xL =2 and xu = 2.5 ==> xr =2.25
F(xL) =-1 f(xu)=1.25 f(xr)=0.0625
f(xr).F(xL) <0 then take xu =xr
3-rd iteration
xL =2 and xu = 2.25 ==> xr =2.125
F(xL) =-1 f(xu)=0.0625 f(xr)=-0.484375
f(xr).F(xL) >0 then take xL=xr
4-th iteration
xL =2.125 and xu = 2.25 ==> xr =2.1875
F(xL) =-0.484375 f(xu)=0.0625 f(xr)=-0.2148
f(xr).F(xL) >0 then take xL=xr
5-th iteration
xL =2.1875 and xu = 2.25 ==> xr =2.21875
F(xL) =-0.484375 f(xu)=0.0625 f(xr)=-0.2148
f(xr).F(xL) >0 then take xL=xr
6-th iteration
xL =2.21875 and xu = 2.25 ==> xr =2.234375
F(xL) =-0.0077 f(xu)=0.0625 f(xr)=-0.00756
f(xr).F(xL) >0 then take xL=xr
7-th iteration
xL =2.234375 and xu = 2.25 ==> xr =2.2421875
F(xL) =-0.00756 f(xu)=0.0625 f(xr)=0.027
x r (new)− xr (old )
%ea=| xr (new) |≈0.35% >%es
f(xr).F(xL) >0 then take xu=xr
8-th iteration
xL =2.234375 and xu = 2.2421875
==> xr =2.23828125
F(xL) =-0.00756 f(xu)=0.027 f(xr)≈0.01
x r (new)− xr (old )
%ea=| xr (new) |≈0.175% >%es
f(xr).F(xL) >0 then take xu=xr;
9-th iteration
xL =2.234375 and xu =2.23828125
==> xr =2.236328125
F(xL) =-0.00756 f(xu)=0.01 f(xr)≈0.00116
x r (new)− xr (old )
%ea=| xr (new) |≈0.09% >%es
f(xr).F(xL) <0 then take xu=xr;
10-th iteration
xL =2.234375 and xu =2.236328125
==> xr =2.235331563
F(xL) =-0.00756 f(xu)=0.00116 f(xr)≈-0.32
x r (new)− xr (old )
%ea=| xr (new) |≈0.04% <%es