m1 = a + (b-a)/2

m2 = (a+b)/2

why is it that m2's result is more accurate than m1's result ?

Printable View

- July 11th 2010, 09:41 AMTGASJOOLaccuracy
m1 = a + (b-a)/2

m2 = (a+b)/2

why is it that m2's result is more accurate than m1's result ? - July 11th 2010, 09:51 AMCaptainBlack
- July 11th 2010, 09:58 AMTGASJOOL
normal floating point arithmetic of a pc applies in this case. I have seen many bisection algorithms do it like m2. Why does m1 produce a lower accurate result?

- July 12th 2010, 12:53 AMCaptainBlack