Fixes 0.1/0.01 comment/code granularity mismatch in Notebooks/Chap01/1_1_BackgroundMathematics.ipynb

This commit is contained in:
Youcef Rahal
2023-12-04 06:20:47 -05:00
parent a8ea2b429f
commit 714c58bbf3

View File

@@ -83,7 +83,7 @@
"source": [
"# Plot the 1D linear function\n",
"\n",
"# Define an array of x values from 0 to 10 with increments of 0.1\n",
"# Define an array of x values from 0 to 10 with increments of 0.01\n",
"# https://numpy.org/doc/stable/reference/generated/numpy.arange.html\n",
"x = np.arange(0.0,10.0, 0.01)\n",
"# Compute y using the function you filled in above\n",
@@ -308,7 +308,7 @@
"source": [
"# Draw the exponential function\n",
"\n",
"# Define an array of x values from -5 to 5 with increments of 0.1\n",
"# Define an array of x values from -5 to 5 with increments of 0.01\n",
"x = np.arange(-5.0,5.0, 0.01)\n",
"y = np.exp(x) ;\n",
"\n",
@@ -354,7 +354,7 @@
"source": [
"# Draw the logarithm function\n",
"\n",
"# Define an array of x values from -5 to 5 with increments of 0.1\n",
"# Define an array of x values from -5 to 5 with increments of 0.01\n",
"x = np.arange(0.01,5.0, 0.01)\n",
"y = np.log(x) ;\n",
"\n",