0% found this document useful (0 votes)
18 views

Assisgnment 3

The document calculates f(x) = x^2 - 2 using the bisection method with initial bounds of [-2, -1] and a stopping criteria of εabs<εs where ε = 0.001. A table is shown tracking 10 iterations of the bisection method, calculating the midpoint and function values at each iteration until the stopping criteria is met at the 9th iteration.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Assisgnment 3

The document calculates f(x) = x^2 - 2 using the bisection method with initial bounds of [-2, -1] and a stopping criteria of εabs<εs where ε = 0.001. A table is shown tracking 10 iterations of the bisection method, calculating the midpoint and function values at each iteration until the stopping criteria is met at the 9th iteration.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Calculate f(x) =X^2 - 2 by using bisection method with intial bounds [-2,-1].

And the
stopping Criteria is
abs<s where =0.001.

S.NO Xi Xu f(Xi) f(Xu) Xm f(Xm) f(Xi)*f(Xm)


1 -2 -1 2 -1 -1.5 0.25 0.5
2 -1.5 -1 0.25 -1 -1.25 -0.4375 -0.109375
3 -1.5 -1.25 0.25 -0.4375 -1.375 -0.109375 -0.0273438
4 -1.5 -1.375 0.25 -0.109375 -1.4375 0.066406 0.01660156
5 -1.4375 -1.375 0.066406 -0.109375 -1.40625 -0.022461 -0.0014915
6 -1.4375 -1.40625 0.066406 -0.022461 -1.421875 0.021729 0.00144291
7 -1.421875 -1.40625 0.021729 -0.022461 -1.414063 -0.000427 -9.283E-006
8 -1.421875 -1.414063 0.021729 -0.000427 -1.417969 0.010635 0.00023109
9 -1.417969 -1.414063 0.010635 -0.000427 -1.416016 0.0051 5.424E-005
10 -1.416016 -1.414063 0.0051 -0.000427 -1.415039 0.002336 1.191E-005
Calculate f(x) =X^2 - 2 by using bisection method with intial bounds [-2,-1].And the
stopping Criteria is
abs<s where =0.001.

abs<s
-
0
0
0
0
0
0
0
0
1

You might also like