80 likes | 103 Views
ME 142 Engineering Computation I. Root Finding & Iterative Solutions. Using a Graph to Find Roots. Approximate process May be used as a starting process to an iterative method May want to refine axis max/min values to focus on plot on area of interest. Using a Graph to Find Roots.
E N D
ME 142Engineering Computation I Root Finding & Iterative Solutions
Using a Graph to Find Roots • Approximate process • May be used as a starting process to an iterative method • May want to refine axis max/min values to focus on plot on area of interest
Bisection Routine • Begin with initial guess: xlow, xhi • Calculate corresponding f(x): f(xlow), f(xhi) • f(xlow)*f(xhi)<0, to ensure root lies within interval • Estimate Root and calculate corresponding f(xroot) • Determine subinterval of root • If f(xlow)*f(xroot)<0, set xhi=xroot • If f(xlow)*f(xroot)>0, set xlow=xroot • Repeat Steps 3-4 until desired tolerance is reached
Bisection Routine Determine subinterval of root If f(xlow)*f(xroot)<0, set xhi=xroot If f(xlow)*f(xroot)>0, set xlow=xroot
Goal Seek Function • Begin with initial guess • “x” value • Define function, f(x), related to initial guess • Use Goal Seek function to find root
Goal Seek Function • Accuracy of Goal Seek function can be controlled in Excel Options • You may need to set the following: • Maximum Iterations • Maximum Change