Homework Solution: Your assignment is to create a spreadsheet that will implement the bisection algorithm using IF functions to dete…

    Assignment: Your assignment is to create a spreadsheet that will implement the bisection algorithm using IF functions to determine the new endpoints of the interval. The function you are to use is: f(x) =z?-2 and you are to use as your initial interval a-1 and b 2 You are to compute twenty steps of the algorithm.
    Your assignment is to create a spreadsheet that will implement the bisection algorithm using IF functions to determine the new endpoints of the interval. The function you are to use is: f(x) = x^2 - 2 and you are to use as your initial interval a = 1 and b = 2 You are to compute twenty steps of the algorithm.

    Expert Answer

     
    #include<iostream>

    Assignment: Your assignment is to produce a spreadsheet that conquer instrument the crossing algorithm using IF parts to detail the novellightlight endpoints of the gap. The part you are to portraiture is: f(x) =z?-2 and you are to portraiture as your primal gap a-1 and b 2 You are to appraise twenty steps of the algorithm.

    Your assignment is to produce a spreadsheet that conquer instrument the crossing algorithm using IF parts to detail the novellightlight endpoints of the gap. The part you are to portraiture is: f(x) = x^2 – 2 and you are to portraiture as your primal gap a = 1 and b = 2 You are to appraise twenty steps of the algorithm.

    Expert Counterpart

     

    #include<iostream>

    using namespace std;

    int deep(){

    double a,b,c,y;
    a = 1;
    b = 2;
    for (int i = 0; i<20; i++){
    c = (a+b)/2;
    y = (a*a-2)*(c*c -2);
    cout << a << ” ” << b << ” ” << c << ” ” << y << endl;
    if (y > 0)
    a = c;
    if (y < 0)
    b = c;
    if (y == 0)
    break;
    }

    cout << “One of the radicle is approximatly ” << c << endl;
    return 0;
    }