Kernel: Python 3 (system-wide)
Use the Bisection Method to find a root of the function f(x) = ln(x)-sin(x) in the interval (2,4) with an error bound of 0.001. Hint: Use a graphical method (like using Matplotlib, say) to get an idea of what values to use as the starting choices for a and b in the algorithm.
In [1]:
In [2]:
In [0]:
In [3]:
In [4]:
In [5]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-5-55a8616adfcc> in <module>
----> 1 bisection(2,2.5,p,0.001)
NameError: name 'p' is not defined
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]: