- #1
Yankel
- 395
- 0
Hello,
I have a problem which I did solve, but I ain't sure of something in it, something small to be honest.
The question is:
Use a binary search and the function f(x)=x^2-5 in the domain [2,3] to find approximation for the value of the square root of 5, with an accuracy of 1/16.
What I did, I tried finding where the function is equal to 0, i.e. x^2-5=0 meaning x is the square root of 5.
I calculated f(2) and f(3), and then f(2.5), f(2.25), f(2.125) and finally f(2.1875), which is the answer (2.1875 is the answer). My simple question is, how, or where, do I see that I am 1/16 accurate ?
Thank you !
I have a problem which I did solve, but I ain't sure of something in it, something small to be honest.
The question is:
Use a binary search and the function f(x)=x^2-5 in the domain [2,3] to find approximation for the value of the square root of 5, with an accuracy of 1/16.
What I did, I tried finding where the function is equal to 0, i.e. x^2-5=0 meaning x is the square root of 5.
I calculated f(2) and f(3), and then f(2.5), f(2.25), f(2.125) and finally f(2.1875), which is the answer (2.1875 is the answer). My simple question is, how, or where, do I see that I am 1/16 accurate ?
Thank you !