Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update HW3
  • Loading branch information
rcc02007 committed Feb 13, 2017
1 parent 6e10962 commit 889acf4
Show file tree
Hide file tree
Showing 12 changed files with 1,954 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HW3/README.md
Expand Up @@ -12,7 +12,7 @@
*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.
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 Down
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.
Empty file added lecture_08/�Y
Empty file.
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.
Empty file added lecture_08/�40
Empty file.

0 comments on commit 889acf4

Please sign in to comment.