Skip to content

Commit

Permalink
read me
Browse files Browse the repository at this point in the history
tryng to get matlab form
  • Loading branch information
tjc14008 committed Oct 5, 2017
1 parent e4eeaef commit bdaa13b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
Repository for homework 2

Question 2
'''matlab
```matlab
cat_cable = @(T) -35+T/10.*cosh(10./T*30)+30-T/10;
[root,fx,ea,iter]=falsepos(cat_cable,900,910,0.00001)
'''
'''matlab
```
```matlab
cat_cable = @(T) -35+T/10.*cosh(10./T*30)+30-T/10;
[root,fx,ea,iter]=bisect(cat_cable,908,909,0.00001)
'''
'''matlab
```
```matlab
cat_cable = @(T) -35+T/10.*cosh(10./T*30)+30-T/10;
[root,ea,iter]=mod_secant(cat_cable,900,910,0.00001)
'''
```


'''matlab
```matlab
| solver | initial guess(es) | ea | number of iterations|
| --- | --- | --- | --- |
|falsepos | 900, 910 | 0.00001| 4 |
|mod_secant | 900, 910 | 0.00001| 50 |
|bisect | 900, 910 | 0.00001| 17 |
'''
```

0 comments on commit bdaa13b

Please sign in to comment.