Skip to content

Commit

Permalink
deploy: 618d71f
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Jul 10, 2024
1 parent e8f9a6e commit d7e6518
Show file tree
Hide file tree
Showing 66 changed files with 279 additions and 277 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
40 changes: 20 additions & 20 deletions blog/basic-python.html
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ <h2>Lambda Lambda Lambda<a class="headerlink" href="#lambda-lambda-lambda" title
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7fdad4e06480&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7fbb647f6200&gt;
4
</pre></div>
</div>
Expand All @@ -1112,7 +1112,7 @@ <h2>Lambda Lambda Lambda<a class="headerlink" href="#lambda-lambda-lambda" title
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7fdad4e06200&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7fbba4019440&gt;
5
</pre></div>
</div>
Expand All @@ -1129,7 +1129,7 @@ <h2>Lambda Lambda Lambda<a class="headerlink" href="#lambda-lambda-lambda" title
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7fdad4e062a0&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7fbb647f6340&gt;
5
5
</pre></div>
Expand All @@ -1150,7 +1150,7 @@ <h2>Lambda Lambda Lambda<a class="headerlink" href="#lambda-lambda-lambda" title
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7fdad4e06340&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7fbb647f6020&gt;
1
3
6
Expand Down Expand Up @@ -1326,7 +1326,7 @@ <h2>Creating arrays in python<a class="headerlink" href="#creating-arrays-in-pyt
[4 5 6]]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1855/3002503601.py:4: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1842/3002503601.py:4: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
print(np.row_stack([a, b]))
</pre></div>
</div>
Expand Down Expand Up @@ -1779,7 +1779,7 @@ <h2>Indexing vectors and arrays in Python<a class="headerlink" href="#indexing-v
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>-1.7950016288086892
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1855/518394352.py:3: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1842/518394352.py:3: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
print(np.trapz( x[x &gt; 2], y[x &gt; 2]))
</pre></div>
</div>
Expand Down Expand Up @@ -1876,17 +1876,17 @@ <h3>3D arrays<a class="headerlink" href="#id2" title="Link to this heading">#</a
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[[0.5476759 0.3187746 0.88242603]
[0.04201148 0.3107921 0.06749891]
[0.71861984 0.95930351 0.43440104]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[[0.20114173 0.78957013 0.90321075]
[0.22052675 0.22851006 0.89396718]
[0.50508075 0.34204208 0.33682147]]

[[0.1454874 0.60072783 0.45501144]
[0.20656186 0.11965505 0.4332491 ]
[0.95939429 0.97698476 0.21397559]]
[[0.43953453 0.5692659 0.64330352]
[0.70936523 0.87371169 0.31148072]
[0.39352461 0.61141827 0.4327842 ]]

[[0.42694521 0.84762176 0.75276863]
[0.12219024 0.78224364 0.79227382]
[0.58754432 0.85776127 0.7448481 ]]]
[[0.81473398 0.87740287 0.20524145]
[0.88280938 0.83577573 0.83025906]
[0.46015632 0.21074422 0.66137439]]]
</pre></div>
</div>
</div>
Expand All @@ -1900,11 +1900,11 @@ <h3>3D arrays<a class="headerlink" href="#id2" title="Link to this heading">#</a
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.5476759 0.04201148 0.71861984]
[0.1454874 0.20656186 0.95939429]
[0.42694521 0.12219024 0.58754432]]
[0.5476759 0.1454874 0.42694521]
[0.45501144 0.4332491 0.21397559]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.20114173 0.22052675 0.50508075]
[0.43953453 0.70936523 0.39352461]
[0.81473398 0.88280938 0.46015632]]
[0.20114173 0.43953453 0.81473398]
[0.64330352 0.31148072 0.4327842 ]
</pre></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion blog/differential-equations.html
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ <h3>Linear algebra approaches to solving systems of constant coefficient ODEs<a
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1910/2289625004.py:4: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1896/2289625004.py:4: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
T = np.row_stack([t, t])
</pre></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions blog/interpolation.html
Original file line number Diff line number Diff line change
Expand Up @@ -916,9 +916,9 @@ <h2>Interpolation with splines<a class="headerlink" href="#interpolation-with-sp
Function evaluations: 24
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1941/1138919460.py:26: DeprecationWarning: Conversion of an array with ndim &gt; 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1925/1138919460.py:26: DeprecationWarning: Conversion of an array with ndim &gt; 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
plt.title(&#39;Max point = ({0:1.2f}, {1:1.2f})&#39;.format(float(xmax),
/tmp/ipykernel_1941/1138919460.py:27: DeprecationWarning: Conversion of an array with ndim &gt; 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
/tmp/ipykernel_1925/1138919460.py:27: DeprecationWarning: Conversion of an array with ndim &gt; 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
float(f(xmax))));
</pre></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions blog/linear-algebra.html
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ <h2>Determining linear independence of a set of vectors<a class="headerlink" hre
2
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1966/3718588497.py:6: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1951/3718588497.py:6: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
A = np.row_stack([v1, v2, v3])
</pre></div>
</div>
Expand Down Expand Up @@ -1231,7 +1231,7 @@ <h3>Another example<a class="headerlink" href="#id2" title="Link to this heading
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[7.57773162 5.99149259]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1966/73961882.py:7: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1951/73961882.py:7: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
A = np.row_stack([v1, v2])
</pre></div>
</div>
Expand Down
28 changes: 15 additions & 13 deletions blog/math.html
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,9 @@ <h2>Numeric derivatives by differences<a class="headerlink" href="#numeric-deriv
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> Forward difference took 0.000216 seconds
Backward difference took 0.000188 seconds
Centered difference took 0.000234 seconds
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> Forward difference took 0.000345 seconds
Backward difference took 0.000194 seconds
Centered difference took 0.000235 seconds
</pre></div>
</div>
<img alt="../_images/e82a955efa2e01fb55f09524ce9405030516d0ae15614c934dfaf2d14380e228.png" src="../_images/e82a955efa2e01fb55f09524ce9405030516d0ae15614c934dfaf2d14380e228.png" />
Expand Down Expand Up @@ -775,7 +775,7 @@ <h2>2-point vs. 4-point numerical derivatives<a class="headerlink" href="#point-
</div>
</div>
<div class="cell_output docutils container">
<img alt="../_images/a30bf00a5204e6d17835fb5f5ffc9f9f08bcc055617d0828094286f2b0b68dca.png" src="../_images/a30bf00a5204e6d17835fb5f5ffc9f9f08bcc055617d0828094286f2b0b68dca.png" />
<img alt="../_images/729dfe3171a20031ea23a8d2a0463e001a80256f6a34a07f5b25cfe0ba7f4c4f.png" src="../_images/729dfe3171a20031ea23a8d2a0463e001a80256f6a34a07f5b25cfe0ba7f4c4f.png" />
</div>
</div>
</section>
Expand Down Expand Up @@ -900,7 +900,7 @@ <h2>Derivatives by FFT<a class="headerlink" href="#derivatives-by-fft" title="Li
</div>
</div>
<div class="cell_output docutils container">
<img alt="../_images/b294a66f4893e385c8b0825ee55fa107babe8973e425c1a90ed2d04ac92108f4.png" src="../_images/b294a66f4893e385c8b0825ee55fa107babe8973e425c1a90ed2d04ac92108f4.png" />
<img alt="../_images/63f40c6dd9b56d83ad5c4d954392d42f12507cea8be3773dc57d6715c03dd194.png" src="../_images/63f40c6dd9b56d83ad5c4d954392d42f12507cea8be3773dc57d6715c03dd194.png" />
</div>
</div>
</section>
Expand Down Expand Up @@ -1280,7 +1280,7 @@ <h3>Numerical data integration<a class="headerlink" href="#numerical-data-integr
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>4.25 0.0625
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1991/1388173814.py:6: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1976/1388173814.py:6: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
i2 = np.trapz(y, x)
</pre></div>
</div>
Expand Down Expand Up @@ -1323,7 +1323,7 @@ <h3>Numerical data integration<a class="headerlink" href="#numerical-data-integr
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>4.000408121620243
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1991/1343167527.py:6: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1976/1343167527.py:6: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
print(np.trapz(y2, x2))
</pre></div>
</div>
Expand Down Expand Up @@ -1363,7 +1363,7 @@ <h3>Combining numerical data with quad<a class="headerlink" href="#combining-num
2.5312499999999987
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1991/1681875887.py:13: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1976/1681875887.py:13: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
print(np.trapz(yfine, xfine))
</pre></div>
</div>
Expand Down Expand Up @@ -1774,7 +1774,7 @@ <h2>The trapezoidal method of integration<a class="headerlink" href="#the-trapez
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>time elapsed = 0.0007312297821044922 sec
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>time elapsed = 0.0010030269622802734 sec
1.9999983517708524
</pre></div>
</div>
Expand All @@ -1795,7 +1795,7 @@ <h2>The trapezoidal method of integration<a class="headerlink" href="#the-trapez
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>time elapsed = 0.0001850128173828125 sec
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>time elapsed = 0.00022840499877929688 sec
1.9999934070923728
</pre></div>
</div>
Expand All @@ -1814,7 +1814,7 @@ <h2>The trapezoidal method of integration<a class="headerlink" href="#the-trapez
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>time elapsed = 8.893013000488281e-05 sec
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>time elapsed = 7.390975952148438e-05 sec
1.999993407092373
</pre></div>
</div>
Expand Down Expand Up @@ -2009,7 +2009,7 @@ <h2>Function integration by the Romberg method<a class="headerlink" href="#funct
0.2928932188134519
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1991/1760157840.py:9: DeprecationWarning: `scipy.integrate.romberg` is deprecated as of SciPy 1.12.0and will be removed in SciPy 1.15.0. Please use`scipy.integrate.quad` instead.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_1976/1760157840.py:9: DeprecationWarning: `scipy.integrate.romberg` is deprecated as of SciPy 1.12.0and will be removed in SciPy 1.15.0. Please use`scipy.integrate.quad` instead.
print(romberg(np.sin, a, b))
</pre></div>
</div>
Expand Down Expand Up @@ -2038,7 +2038,9 @@ <h3>Solve the quadratic equation<a class="headerlink" href="#solve-the-quadratic
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[(-b - sqrt(-4*a*c + b**2))/(2*a), (-b + sqrt(-4*a*c + b**2))/(2*a)]
⎡ _____________ _____________⎤
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>⎡ _____________ _____________⎤
⎢ ╱ 2 ╱ 2 ⎥
⎢-b - ╲╱ -4⋅a⋅c + b -b + ╲╱ -4⋅a⋅c + b ⎥
⎢─────────────────────, ─────────────────────⎥
Expand Down
4 changes: 2 additions & 2 deletions blog/nonlinear-algebra.html
Original file line number Diff line number Diff line change
Expand Up @@ -765,10 +765,10 @@ <h2>Method of continuity for nonlinear equation solving<a class="headerlink" hre
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_2021/4022852329.py:19: RuntimeWarning: The iteration is not making good progress, as measured by the
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_2004/4022852329.py:19: RuntimeWarning: The iteration is not making good progress, as measured by the
improvement from the last ten iterations.
y1, = fsolve(tmp, x0)
/tmp/ipykernel_2021/4022852329.py:19: RuntimeWarning: The iteration is not making good progress, as measured by the
/tmp/ipykernel_2004/4022852329.py:19: RuntimeWarning: The iteration is not making good progress, as measured by the
improvement from the last five Jacobian evaluations.
y1, = fsolve(tmp, x0)
</pre></div>
Expand Down
2 changes: 1 addition & 1 deletion blog/plotting.html
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ <h2>Peak annotation in matplotlib<a class="headerlink" href="#peak-annotation-in
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_2075/256016704.py:19: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_2059/256016704.py:19: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
area = np.trapz(i[ind], w[ind])
</pre></div>
</div>
Expand Down
Loading

0 comments on commit d7e6518

Please sign in to comment.