Skip to content

Commit

Permalink
deploy: ca31429
Browse files Browse the repository at this point in the history
  • Loading branch information
aronwalsh committed Jun 12, 2024
1 parent 3bb683f commit 264e9dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Lecture1.html
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ <h3><span class="section-number">1.2.2. </span>Plotting with Matplotlib<a class=
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># Imports</span>
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span> <span class="c1"># Plotting</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span> <span class="c1"># Numerical operations</span>
<span class="o">%</span><span class="k">matplotlib</span> inline # Inline plotting for Jupyter notebooks
<span class="o">%</span><span class="k">matplotlib</span> inline
<span class="c1"># Inline plotting for Jupyter notebooks</span>

<span class="n">x</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mf">0.001</span><span class="p">)</span> <span class="c1"># x = 0 to 10 in steps of 0.001</span>
<span class="n">y</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">sin</span><span class="p">(</span><span class="n">x</span><span class="o">*</span><span class="n">x</span><span class="p">)</span> <span class="c1"># define your function</span>
Expand Down
3 changes: 2 additions & 1 deletion _sources/Lecture1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@
"# Imports\n",
"import matplotlib.pyplot as plt # Plotting\n",
"import numpy as np # Numerical operations\n",
"%matplotlib inline # Inline plotting for Jupyter notebooks\n",
"%matplotlib inline\n",
"# Inline plotting for Jupyter notebooks\n",
"\n",
"x = np.arange(0, 10, 0.001) # x = 0 to 10 in steps of 0.001\n",
"y = np.sin(x*x) # define your function\n",
Expand Down

0 comments on commit 264e9dc

Please sign in to comment.