用二分法求根号2的近似值

问题描述:

用二分法求根号2的近似值

1^2=12
((2+1)/2)^2=1.5^2=2.25>2
((1+1.5)/2)^2=1.25^2=1.5625