Bisection Method

Sample C program that uses Bisection Method in mathematics

  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<math.h>
  4. /*Given Function*/"\n""*""\n\t\t Bisection Method""\n\t\t ****************""\n""Given Function x^3 - 4x - 9 = 0\n""Enter Accuracy : ");
  5. scanf("%f""\n\t x0\t x1\t x2\t f0\t f1\t f2""\n %7.4f\t%7.4f\t%7.4f\t%7.4f\t%7.4f\t%7.4f\t""\n""\n\t\t Root can varges at = %7.4f\t", x2);
  6. design();
  7. }
  8. getch();
  9. }