/* This is a main routine that will call your function newton * to find the roots of an equation */ #include #include double bisection(double left, double right, double tolerance); int main(int argc, char * argv[]) { double f; double left, right, tolerance; if(argc < 4 ){ printf("Usage: %s left_bracket right_bracket tolerance\n",argv[0]); return 1; } left = strtod(argv[1],NULL); right = strtod(argv[2],NULL); tolerance = strtod(argv[3],NULL); f = bisection(left,right,tolerance); printf("This is the answer: %lf using [%lf,%lf] as initial brackets.\n",f,left,right); } // Below is the function to edit. double bisection(double left, double right, double tolerance) { double value; return value; }