solver | initial guess(es) | ea | number of iterations |
---|---|---|---|
falsepos | 18.9189 | 0.2152 | 50.0000 |
incsearch | 17.9474 | 0.0000 | 9.0000 |
newtraph | 0 | 0 | 49.0000 |
mod_secant | 17.9474 | 0.0000 | 4.0000 |
Contains all functions used for Homework #3.
Finds the roots and compares the iterations required for each function.
Creates the convergance plot be repeatedly calling to the various solvers.
The plot ouput by ME3255_HW3_convergance.m
x_i = .2
|number of iterations| approximate error * 10e7| root | | --- | --- | --- | --- | |1|0.0000| -0.1116| |2|0.0000| -0.0212| |3|0.0002| -0.0009| |4|0.0058| -0.0000| |5|3.3152| -0.0000|
x_i = 2
|number of iterations| spproximate error| root | | --- | --- | --- | --- | |1|12.5000| 2.2857| |2| 5.2205| 2.4116| |3| 3.3683| 2.4957| |4| 2.4708| 2.5589| |5| 1.9397| 2.6095|
Contains all functions used for Homework 4.
The function described fully in lecture (taken from lecture 8 in ME3255S2017)
The function created in part a. Calculates potential energy of the collar.
The script used to run the goldmin function on collar_potential_energy.