#include #include void main() { double x1,x2, fx, y, root; int j; // guess for the range x1 = 0; // y = - x2 = 1.5 ;// y = + for (j=1;j<=100; j++) { fx = 0.5*(x1+x2); // mid-point y = fx - cos(fx); if(y<0)x1=fx; if(y>0)x2=fx; cout<<"Iteration "<