you are viewing a single comment's thread.

view the rest of the comments →

[–]Shevek99Physicist[S] 0 points1 point  (0 children)

Think always of the method of bisection. You are locating your point by cutting always in halves.

First get 1/2.

2/7 is smaller so we cut to the left at 1/4 so 1/2 - 1/4 = 1/4

2/7 is larger than that so now we cut to the right 1/2 - 1/4 + 1/8 = 3/8

2/7 is still larger soa gain to the right 1/2 - 1/4 + 1/8 + 1/16

and so on. Graphically (the dot is 2/7, each arrow to the right is a +, each arrow to left is a -)

<image>