Fixes 0.1/0.01 comment/code granularity mismatch in Notebooks/Chap01/1_1_BackgroundMathematics.ipynb
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# Plot the 1D linear function\n",
|
"# Plot the 1D linear function\n",
|
||||||
"\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",
|
"# https://numpy.org/doc/stable/reference/generated/numpy.arange.html\n",
|
||||||
"x = np.arange(0.0,10.0, 0.01)\n",
|
"x = np.arange(0.0,10.0, 0.01)\n",
|
||||||
"# Compute y using the function you filled in above\n",
|
"# Compute y using the function you filled in above\n",
|
||||||
@@ -308,7 +308,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# Draw the exponential function\n",
|
"# Draw the exponential function\n",
|
||||||
"\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",
|
"x = np.arange(-5.0,5.0, 0.01)\n",
|
||||||
"y = np.exp(x) ;\n",
|
"y = np.exp(x) ;\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -354,7 +354,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# Draw the logarithm function\n",
|
"# Draw the logarithm function\n",
|
||||||
"\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",
|
"x = np.arange(0.01,5.0, 0.01)\n",
|
||||||
"y = np.log(x) ;\n",
|
"y = np.log(x) ;\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user