Skip to content

Commit 2180ef0

Browse files
committed
scipy notebook: reword errors to uncertainty
1 parent 0c86252 commit 2180ef0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: python/scientific-python.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@
157157
"# Fit a polynomial of degree 1, return covariance matrix\n",
158158
"params, covariance_matrix = np.polyfit(x, y, deg=1, cov=True)\n",
159159
"\n",
160-
"errors = np.sqrt(np.diag(covariance_matrix))\n",
160+
"uncertainties = np.sqrt(np.diag(covariance_matrix))\n",
161161
"\n",
162-
"for name, value, error in zip(\"ab\", params, errors):\n",
163-
" print(f\"{name} = {value:.3f} ± {error:.3f}\")"
162+
"for name, value, uncertainty in zip(\"ab\", params, uncertainties):\n",
163+
" print(f\"{name} = {value:.3f} ± {uncertainty:.3f}\")"
164164
]
165165
},
166166
{

0 commit comments

Comments
 (0)