/* sample2 * * Start values: * bisection: 1.0 and 3.0 * secant: 1.0 and 3.0 * * Tolerance of .000001 */ #include float f( float x ) { return pow(x,4.0) - 1.3*pow(x,3.0) - 2.97*(x*x) + 5.929*x - 2.662; }