Skip to content

Commit

Permalink
deploy: 2629559
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Jan 14, 2025
1 parent 095a16c commit cd60d50
Show file tree
Hide file tree
Showing 83 changed files with 309 additions and 311 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.
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.
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.
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.
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.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
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 @@ -1082,7 +1082,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 0x7fef27a3d440&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7f4bf9b45440&gt;
4
</pre></div>
</div>
Expand All @@ -1098,7 +1098,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 0x7fef27ba4400&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7f4bf9cdfc40&gt;
5
</pre></div>
</div>
Expand All @@ -1115,7 +1115,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 0x7fef27a3d300&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7f4bf9b45300&gt;
5
5
</pre></div>
Expand All @@ -1136,7 +1136,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 0x7fef27a3d260&gt;
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;function &lt;lambda&gt; at 0x7f4bf9b453a0&gt;
1
3
6
Expand Down Expand Up @@ -1312,7 +1312,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_1940/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_1955/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 @@ -1765,7 +1765,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_1940/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_1955/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 @@ -1862,17 +1862,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.02241208 0.51912339 0.23255799]
[0.72026388 0.35764463 0.26365038]
[0.44022892 0.01937405 0.0260483 ]]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[[0.22424382 0.71687897 0.78379126]
[0.27572908 0.77444296 0.27943645]
[0.8986658 0.91157471 0.295053 ]]

[[0.5692712 0.11180606 0.76464366]
[0.42584301 0.85356104 0.92856722]
[0.97009771 0.51248124 0.32064109]]
[[0.40497407 0.27342924 0.10240536]
[0.92501449 0.18796341 0.34774057]
[0.76297456 0.88047703 0.82513764]]

[[0.04267507 0.03462283 0.64053807]
[0.6521267 0.65678769 0.12948885]
[0.16196025 0.87381596 0.56437261]]]
[[0.30555519 0.44840434 0.6977844 ]
[0.90520179 0.5373344 0.06214779]
[0.07562462 0.23483865 0.19569069]]]
</pre></div>
</div>
</div>
Expand All @@ -1886,11 +1886,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.02241208 0.72026388 0.44022892]
[0.5692712 0.42584301 0.97009771]
[0.04267507 0.6521267 0.16196025]]
[0.02241208 0.5692712 0.04267507]
[0.76464366 0.92856722 0.32064109]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[0.22424382 0.27572908 0.8986658 ]
[0.40497407 0.92501449 0.76297456]
[0.30555519 0.90520179 0.07562462]]
[0.22424382 0.40497407 0.30555519]
[0.10240536 0.34774057 0.82513764]
</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 @@ -1604,7 +1604,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_1991/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_2007/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 @@ -902,9 +902,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_2020/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_2037/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_2020/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_2037/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 @@ -1164,7 +1164,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_2045/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_2060/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 @@ -1217,7 +1217,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_2045/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_2060/73961882.py:7: DeprecationWarning: `row_stack` alias is deprecated. Use `np.vstack` directly.
A = np.row_stack([v1, v2])
</pre></div>
</div>
Expand Down
24 changes: 11 additions & 13 deletions blog/math.html
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,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.000201 seconds
Centered difference took 0.000250 seconds
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> Forward difference took 0.000230 seconds
Backward difference took 0.000200 seconds
Centered difference took 0.000226 seconds
</pre></div>
</div>
<img alt="../_images/8cc70831a8bf95013c7ce2ca65ee454a771f257377ce61208ec2ab183e2d79d1.png" src="../_images/8cc70831a8bf95013c7ce2ca65ee454a771f257377ce61208ec2ab183e2d79d1.png" />
Expand Down Expand Up @@ -761,7 +761,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/0f2db4578a6832db616ead814400058fe6031dc0e7b90ffc06e431d86b558fb0.png" src="../_images/0f2db4578a6832db616ead814400058fe6031dc0e7b90ffc06e431d86b558fb0.png" />
<img alt="../_images/4f162f64d74649f0de22d066eec6214fe400c3cd916650f6cbc76687af7d79f1.png" src="../_images/4f162f64d74649f0de22d066eec6214fe400c3cd916650f6cbc76687af7d79f1.png" />
</div>
</div>
</section>
Expand Down Expand Up @@ -886,7 +886,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/8133c9e2a01e04a34783facf1220716f4c0bfe999649f9b3bf803da508a33f7d.png" src="../_images/8133c9e2a01e04a34783facf1220716f4c0bfe999649f9b3bf803da508a33f7d.png" />
<img alt="../_images/1f1878c90a6924bedd069df2227dd41fcd1ba5bf32a01b7273c872a763e01cc7.png" src="../_images/1f1878c90a6924bedd069df2227dd41fcd1ba5bf32a01b7273c872a763e01cc7.png" />
</div>
</div>
</section>
Expand Down Expand Up @@ -1266,7 +1266,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_2068/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_2084/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 @@ -1309,7 +1309,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_2068/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_2084/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 @@ -1349,7 +1349,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_2068/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_2084/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 @@ -1761,7 +1761,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.0007011890411376953 sec
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>time elapsed = 0.0006625652313232422 sec
1.9999983517708524
</pre></div>
</div>
Expand All @@ -1782,7 +1782,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.00020694732666015625 sec
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>time elapsed = 0.0002105236053466797 sec
1.9999934070923728
</pre></div>
</div>
Expand Down Expand Up @@ -2028,9 +2028,7 @@ <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 @@ -751,10 +751,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_2095/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_2113/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_2095/4022852329.py:19: RuntimeWarning: The iteration is not making good progress, as measured by the
/tmp/ipykernel_2113/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 @@ -1159,7 +1159,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_2148/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_2166/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
6 changes: 3 additions & 3 deletions blog/programming.html
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ <h2>Unique entries in a vector<a class="headerlink" href="#unique-entries-in-a-v
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&#39;b&#39;, &#39;c&#39;, &#39;abracadabra&#39;, &#39;d&#39;, &#39;a&#39;]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&#39;b&#39;, &#39;abracadabra&#39;, &#39;d&#39;, &#39;c&#39;, &#39;a&#39;]
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -1154,11 +1154,11 @@ <h2>About your python<a class="headerlink" href="#about-your-python" title="Link
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>uname_result(system=&#39;Linux&#39;, node=&#39;fv-az1945-159&#39;, release=&#39;6.8.0-1017-azure&#39;, version=&#39;#20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024&#39;, machine=&#39;x86_64&#39;)
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>uname_result(system=&#39;Linux&#39;, node=&#39;fv-az1689-947&#39;, release=&#39;6.8.0-1017-azure&#39;, version=&#39;#20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024&#39;, machine=&#39;x86_64&#39;)
Linux
(&#39;64bit&#39;, &#39;ELF&#39;)
x86_64
fv-az1945-159
fv-az1689-947
Linux-6.8.0-1017-azure-x86_64-with-glibc2.39
x86_64
(&#39;main&#39;, &#39;Dec 4 2024 12:58:35&#39;)
Expand Down
Loading

0 comments on commit cd60d50

Please sign in to comment.