Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added force eqn to HW2
  • Loading branch information
rcc02007 committed Sep 28, 2017
1 parent 79bc9f1 commit f6289c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions HW2/README.html
Expand Up @@ -65,11 +65,11 @@
<p class="caption">eq4</p>
</div>
<p><span class="math inline">\(E_{total}(\Delta x)=E_{LJ}(x_{0}+\Delta x)-F\Delta x\)</span>.</p>
<p>Where <span class="math inline">\(x_{0}\)</span> is the distance between atoms with no force applied and <img src="./equations/deltax.png" alt="dx" /> is the amount each gold atom has moved under a given force, F.</p>
<p>Where <img src="./equations/x0.png" alt="x0" /> is the distance between atoms with no force applied and <img src="./equations/deltax.png" alt="dx" /> is the amount each gold atom has moved under a given force, F.</p>
<ol style="list-style-type: lower-alpha">
<li><p>Determine <img src="./equations/x0.png" alt="x0" /> when F=0 nN using the golden ratio and parabolic methods. <em>Show your script and output in your README and include your functions</em></p></li>
<li><p>Solve for <img src="./equations/deltax.png" alt="dx" /> is the amount each gold atom has mov for F=0 to 0.0022 nN with 30 steps. *Use the golden ratio solver or the matlab/octave <code>fminsearch</code></p></li>
<li><p>create a sum of squares error function <code>sse_of_parabola.m</code> that calculates the sum of squares error between a function <span class="math inline">\(F(x)=K_{1}\Delta x+1/2K_{2}\Delta x^{2}\)</span> and the Forces used in part B for each <img src="./equations/deltax.png" alt="dx" />.</p></li>
<li><p>create a sum of squares error function <code>sse_of_parabola.m</code> that calculates the sum of squares error between a function <img src="./equations/fx.png" alt="F(x)" /> <span class="math inline">\(F(x)=K_{1}\Delta x+1/2K_{2}\Delta x^{2}\)</span> and the Forces used in part B for each <img src="./equations/deltax.png" alt="dx" />.</p></li>
<li><p>Use the <code>fminsearch</code> matlab/octave function to determine <img src="./equations/k1k2.png" alt="k1k2" />.</p></li>
<li><p>Plot the force vs calculated <img src="./equations/deltax.png" alt="dx" /> and the best-fit parabola using <img src="./equations/k1k2.png" alt="k1k2" /> in part d.</p></li>
</ol>
Expand Down
2 changes: 1 addition & 1 deletion HW2/README.md
Expand Up @@ -97,7 +97,7 @@ described by the Lennard-Jones potential as such
solver or the matlab/octave `fminsearch`

c. create a sum of squares error function `sse_of_parabola.m` that calculates the sum of
squares error between a function $F(x)=K_{1}\Delta x+1/2K_{2}\Delta x^{2}$ and the
squares error between a function ![F(x)](./equations/fx.png) $F(x)=K_{1}\Delta x+1/2K_{2}\Delta x^{2}$ and the
Forces used in part B for each ![dx](./equations/deltax.png).

d. Use the `fminsearch` matlab/octave function to determine
Expand Down

0 comments on commit f6289c9

Please sign in to comment.