Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'rcc02007/master'
  • Loading branch information
Thomas Ressler authored and Thomas Ressler committed Feb 13, 2017
2 parents 9728528 + e5f170b commit 8821175
Show file tree
Hide file tree
Showing 10 changed files with 1,956 additions and 6 deletions.
11 changes: 5 additions & 6 deletions HW3/README.md
Expand Up @@ -11,8 +11,8 @@
c. Copy your `projectile.m` function into the 'roots_and_optimization' folder.
*Disable the plotting routine for the solvers*

d. Use the four solvers `falsepos.m`, `incsearch.m`, `newtraph.m` and `mod_secant.m`
to solve for the angle needed to reach h=1.72 m, with an initial speed of 1.5 m/s.
d. Use the four solvers `falsepos.m`, `bisect.m`, `newtraph.m` and `mod_secant.m`
to solve for the angle needed to reach h=1.72 m, with an initial speed of 15 m/s.

e. The `newtraph.m` function needs a derivative, calculate the derivative of your
function with respect to theta, `dprojectile_dtheta.m`. This function should
Expand All @@ -29,7 +29,7 @@
| solver | initial guess(es) | ea | number of iterations|
| --- | --- | --- | --- |
|falsepos | | | |
|incsearch | | | |
|bisect | | | |
|newtraph | | | |
|mod_secant | | | |
```
Expand All @@ -49,7 +49,7 @@ using the numerical solvers, `newtraph.m` and `mod_secant.m`, there are certain
guesses that do not converge.

a. Calculate the first 5 iterations for the Newton-Raphson method with an initial
guess of x_i=2.
guess of x_i=2 for f(x)=x*exp(-x^2).

b. Add the results to a table in the `README.md` with:

Expand All @@ -70,5 +70,4 @@ guesses that do not converge.
'divergence' to 'convergence')

3. Commit your changes to your repository. Sync your local repository with github. Then
copy and paste the "clone URL" into the following Google Form [Homework
#3](https://goo.gl/forms/UJBGwp0fQcSxImkq2)
copy and paste the "clone URL" into the following Google Form [Homework 3](https://goo.gl/forms/UJBGwp0fQcSxImkq2)
Binary file added lecture_07/.lecture_07.md.swo
Binary file not shown.
Binary file added lecture_07/.lecture_07.md.swp
Binary file not shown.
6 changes: 6 additions & 0 deletions lecture_08/.ipynb_checkpoints/lecture_08-checkpoint.ipynb
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Binary file added lecture_08/Auchain_model.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture_08/au_chain.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture_08/goldenratio.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,941 changes: 1,941 additions & 0 deletions lecture_08/lecture_08.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lecture_08/lennard_jones.m
@@ -0,0 +1,4 @@
function E_LJ =lennard_jones(x,sigma,epsilon)
E_LJ = 4*epsilon*((sigma./x).^12-(sigma./x).^6);
end

Binary file added lecture_08/octave-workspace
Binary file not shown.

0 comments on commit 8821175

Please sign in to comment.