Professional Documents
Culture Documents
Harshit Prac2 (A)
Harshit Prac2 (A)
Question 1 :
x0=1
x1=2
Nmax=20
1
epsilon=
1 000 000
f[x]:=Cos[x]
Root is:1.5708
1.0
0.5
-1 1 2 3
-0.5
-1.0
Question 2 :
Harshit Prac2(a).nb 3
x1=2
Nmax=20
1
epsilon=
1 000 000
f[x]:=1 - 5 x + x3
Root is:2.12842
10
Out[52]= 5
-1 1 2 3
Question 3 :
x0=1
x1=2
Nmax=20
1
epsilon=
1 000 000
f[x]:=-ⅇx x + Cos[x]
Root is:0.517757
-1 1 2 3
-10
-20
Out[66]= -30
-40
-50
-60