Skip to content

Commit

Permalink
update on typo week 11
Browse files Browse the repository at this point in the history
  • Loading branch information
mhjensen committed May 3, 2024
1 parent 73fd0f0 commit 69439fa
Show file tree
Hide file tree
Showing 8 changed files with 906 additions and 560 deletions.
3 changes: 1 addition & 2 deletions doc/pub/week11/html/._week11-bs003.html
Original file line number Diff line number Diff line change
Expand Up @@ -1311,8 +1311,7 @@ <h2 id="python-version-for-the-two-non-interacting-particles" class="anchor">Pyt
Q <span style="color: #666666">=</span> Qfac(r,b,w)

<span style="color: #008000; font-weight: bold">for</span> ih <span style="color: #AA22FF; font-weight: bold">in</span> <span style="color: #008000">range</span>(NumberHidden):
sum1 <span style="color: #666666">+=</span> w[:,:,ih]<span style="color: #666666">/</span>(<span style="color: #666666">1+</span>np<span style="color: #666666">.</span>exp(<span style="color: #666666">-</span>Q[ih]))

sum1 <span style="color: #666666">+=</span> r[:,:]<span style="color: #666666">/</span>(<span style="color: #666666">1+</span>np<span style="color: #666666">.</span>exp(<span style="color: #666666">-</span>Q[ih]))
qforce <span style="color: #666666">=</span> <span style="color: #666666">2*</span>(<span style="color: #666666">-</span>(r<span style="color: #666666">-</span>a)<span style="color: #666666">/</span>sig2 <span style="color: #666666">+</span> sum1<span style="color: #666666">/</span>sig2)

<span style="color: #008000; font-weight: bold">return</span> qforce
Expand Down
3 changes: 1 addition & 2 deletions doc/pub/week11/html/week11-reveal.html
Original file line number Diff line number Diff line change
Expand Up @@ -1489,8 +1489,7 @@ <h2 id="python-version-for-the-two-non-interacting-particles">Python version for
Q = Qfac(r,b,w)

<span style="color: #8B008B; font-weight: bold">for</span> ih <span style="color: #8B008B">in</span> <span style="color: #658b00">range</span>(NumberHidden):
sum1 += w[:,:,ih]/(<span style="color: #B452CD">1</span>+np.exp(-Q[ih]))

sum1 += r[:,:]/(<span style="color: #B452CD">1</span>+np.exp(-Q[ih]))
qforce = <span style="color: #B452CD">2</span>*(-(r-a)/sig2 + sum1/sig2)

<span style="color: #8B008B; font-weight: bold">return</span> qforce
Expand Down
3 changes: 1 addition & 2 deletions doc/pub/week11/html/week11-solarized.html
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,7 @@ <h2 id="python-version-for-the-two-non-interacting-particles">Python version for
Q = Qfac(r,b,w)

<span style="color: #8B008B; font-weight: bold">for</span> ih <span style="color: #8B008B">in</span> <span style="color: #658b00">range</span>(NumberHidden):
sum1 += w[:,:,ih]/(<span style="color: #B452CD">1</span>+np.exp(-Q[ih]))

sum1 += r[:,:]/(<span style="color: #B452CD">1</span>+np.exp(-Q[ih]))
qforce = <span style="color: #B452CD">2</span>*(-(r-a)/sig2 + sum1/sig2)

<span style="color: #8B008B; font-weight: bold">return</span> qforce
Expand Down
3 changes: 1 addition & 2 deletions doc/pub/week11/html/week11.html
Original file line number Diff line number Diff line change
Expand Up @@ -1416,8 +1416,7 @@ <h2 id="python-version-for-the-two-non-interacting-particles">Python version for
Q <span style="color: #666666">=</span> Qfac(r,b,w)

<span style="color: #008000; font-weight: bold">for</span> ih <span style="color: #AA22FF; font-weight: bold">in</span> <span style="color: #008000">range</span>(NumberHidden):
sum1 <span style="color: #666666">+=</span> w[:,:,ih]<span style="color: #666666">/</span>(<span style="color: #666666">1+</span>np<span style="color: #666666">.</span>exp(<span style="color: #666666">-</span>Q[ih]))

sum1 <span style="color: #666666">+=</span> r[:,:]<span style="color: #666666">/</span>(<span style="color: #666666">1+</span>np<span style="color: #666666">.</span>exp(<span style="color: #666666">-</span>Q[ih]))
qforce <span style="color: #666666">=</span> <span style="color: #666666">2*</span>(<span style="color: #666666">-</span>(r<span style="color: #666666">-</span>a)<span style="color: #666666">/</span>sig2 <span style="color: #666666">+</span> sum1<span style="color: #666666">/</span>sig2)

<span style="color: #008000; font-weight: bold">return</span> qforce
Expand Down
Binary file modified doc/pub/week11/ipynb/ipynb-week11-src.tar.gz
Binary file not shown.
Loading

0 comments on commit 69439fa

Please sign in to comment.