Kernel: Python 3 (system-wide)
In [8]:
We use the bisection method which has already been written.
In [9]:
We import these items so that we can produce a graph.
In [10]:
In [11]:
Out[11]:
[<matplotlib.lines.Line2D at 0x7f2002d929d0>]
We see in the graph that 2.25 is the closest to zero so we put 2.25 into the bisection formula to see how close it is.
In [13]:
Out[13]:
2.2197265625
In [14]:
Out[14]:
0.0006532685362758972
This is basically pretty much zero so this works out.