Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
4a
4a goldmin
  • Loading branch information
tjc14008 committed Oct 6, 2017
1 parent e92fe82 commit a84132c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
28 changes: 28 additions & 0 deletions README.md
Expand Up @@ -56,3 +56,31 @@ df = @(x) -(2*(x)^2-4*x+1)*exp(-(x-1)^2);
| 4 | 1.2 | 2.3315e-13 |
| 5 | 1.2 | 2.3315e-13 |
```


Question 4
a)
```matlab
lj = @(x) 4*0.039*((2.394./x).^12-(2.394./x).^6);
[x,E,ea,its] = goldmin(lj,2.8,6)
```
x =

2.8000


E =

-0.0371


ea =

9.9392e-05


its =

27


2 changes: 2 additions & 0 deletions goldmin_lj.m
@@ -0,0 +1,2 @@
lj = @(x) 4*0.039*((2.394./x).^12-(2.394./x).^6);
[x,E,ea,its] = goldmin(lj,0,3)

0 comments on commit a84132c

Please sign in to comment.