Assignment3
Assignment3
𝑥3+cos 𝑥 =0
Question 1
Question 2
ex + 2 + 2cos x - 6=0
−x
3-rd Iteration
Xl=1.88913 ==> f(xl)=-0.01
Xu=2 ==>f(xu)=0.1814
Xr =1.895 ==>f(Xr)=-0.01 Xl =Xr
4-th Iteration
Xl=1.895 ==> f(xl)=-0.00081
Xu=2 ==>f(xu)=0.1814
Xr =1.895467 we get ea = 0.025%<es
Then the root of the equation is 1.895467
Question 4
f(x)= sin(√ x)-x =0 ==>x=sin(√ x) es =0.01%
Xi+1 = sin(√ xi) X0= 1
X1=0.841471 X2=0.794
X 2− x 1
ea =¿ x 2 |=5.97%<es
X3=0.777742 X4=0.7719
X5=0.7699 X6=0.7691
X7=0.768808 X8=0.768707
X9=0.76867
At final we get
%ea=0.0048%<%es
Question 5
It is required to find an iterative formula
g(x),
Such that g’(X)<0
then We get g(x)=√ −cos (x) ==> x=√ −cos (x)
3 3
Question 6
3
We ‘ ll get the formula g(x)=2+ x
X0=4 es=0.05%
X1=2.75 X2=3.909 X3=2.9706
X4=3.01 X5=2.9967 X6=3.001
X7=2.999633
Then x=2.999633
Question 7
x must be between the interval
[0,0.11meter]
Xu =0.11 Xl =0
We ‘ll substitude the Xl and Xu till we
reach ea <es using Bisection method