BISECTION ALGORITHM 2.1/tutorialoutletdotcom
http://www.tutorialoutlet.com/all-miscellaneous/bisection-algorithm-2-1-to-find-a-solution-to-f-x-0-given-the-continuous-function-f-on-the-interval-a-b FOR MORE CLASSES VISIT tutorialoutlet / BISECTION ALGORITHM 2.1 To find a solution to f(x) = 0 given the continuous function f on the interval [a,b], where f(a) and f(b) have opposite signs: INPUT: endpoints a,b; tolerance TOL; maximum number of iterations N0. OUTPUT: approximate solution p or a message that the algorithm fails. #include<stdio.h> #include<math.h> #define ZERO 1.0E-20 #define true 1 #define false 0
★
★
★
★
★
114 views • 3 slides