Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The Bisection Technique

  1. Mar 8, 2006 #1


    User Avatar
    Gold Member

    in this page they are descrbing the forthmentioned technique.
    and im quite puzzled, because if i get this interval:
    let's take the equation f(x)=x^2.
    now if we follow the algorithm we find that there might not be a root between them, which is ofcourse absurd. (sqrt2 and sqrt3 are ofcourse included inbetween).

    anyway, here is the page http://spiff.rit.edu/classes/phys317/lectures/closed_root/closed_root.html
  2. jcsd
  3. Mar 8, 2006 #2
    'root' means that f(x) = 0

    clearly x^2 is not 0 in the interval you mention, so the algorithm is correct

    given that everything in the interval [1,2] is the square root of *something*, even your logic there is flawed.
  4. Mar 14, 2006 #3
    The roots or zeros of a function are synonymous with the "x-intercepts" of that function.

    The article doesn't mention that the function has to be one-to-one or either increasing or decreasing within the interval for the algorithm to work properly. (Consider a parabola with a vertex below the origin between an interval [x1, x2]. If x2-x1 is greater than the distance between the roots, the algorithm doesn't work.)
  5. Mar 14, 2006 #4


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    The linked algorithm is poorly written. Like signs at the end points of the test interval indicate either no roots or an EVEN NUMBER of roots on the interval. Like wise a sign change on the interval means an odd number of roots on the test interval. The user of the algorithm must have sufficient knowledge of the function to pick a valid starting interval. The best way to get the need information is to plot the function.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook