Skip to content

Commit 7d9942d

Browse files
committed
P-E-square root and Nthroot-edited
1 parent c8ddd24 commit 7d9942d

2 files changed

+2
-2
lines changed

PE-Heron method for computing square root of positive number.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"**Heron's method** computes the *square root* of a given positive number $x$ by\n",
1111
" 1) $x_0 \\leftarrow$ some initial guess <br>\n",
1212
" 2) for $n=0,1,2...$ do: <br>\n",
13-
"$\\;\\;\\;\\; x_{n+1}=x_n+\\frac{1}{2}(x_n+\\frac{x}{x_n})$\n",
13+
"$\\;\\;\\;\\; x_{n+1}=\\frac{1}{2}(x_n+\\frac{x}{x_n})$\n",
1414
"\n",
1515
"YouTube Channel: **@ostad-ai**\n",
1616
"<br>The Python code is at: https://github.com/ostad-ai/Python-Everything"

PE-Nth root algorithm.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"**Nth root algorithm** computes the *nth root* of a given positive number $x$ by\n",
1111
" 1) $x_0 \\leftarrow$ some initial guess <br>\n",
1212
" 2) for $k=0,1,2...$ do: <br>\n",
13-
"$\\;\\;\\;\\; x_{k+1}=x_k+\\frac{1}{n}((n-1)x_k+\\frac{x}{x^{n-1}_k})$\n",
13+
"$\\;\\;\\;\\; x_{k+1}=\\frac{1}{n}((n-1)x_k+\\frac{x}{x^{n-1}_k})$\n",
1414
"\n",
1515
"YouTube Channel: **@ostad-ai**\n",
1616
"<br>The Python code is at: https://github.com/ostad-ai/Python-Everything"

0 commit comments

Comments
 (0)