Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Image: ubuntu2004
Kernel: Python 3 (system-wide)
Newton's Method to approximate cube roots
Approximating
In [2]:
Out[2]:
cube root of 4 = 4^(1/3) = 1.5874010519681994
Using Newton's Method:
1st guess = 1:
1.5874096961416333
2nd guess = 1.5:
1.587401164777749
3rd guess = 1.5 (decreasing err to 0.0000000001):
1.5874010519681996 <-- this is the most accurate
In [0]: