Professional Documents
Culture Documents
Q5. Function calculates two outputs for one input. The script uses hold on and hold off to plot horizontal and vertical oscillatory lines between two curves.
Worksheet 9 Newtons Method Use func1.m and dfunc1.m as templates for f(x) and f(x).
Use Q8S_Bsect.m for Bisection method if Q8F.m is used as the function file. Use Q8S_Newt.m for Newtons method if Q8F.m is used as the function file.
The function Q9Bisect inputs xL and xR and outputs the root and the number of iterations. The corresponding script file is Q9S.m (Q9F.m is the function file used for the fixed point iteration.
Use EulSclr10.m as a template for Eulers method for one differential equation.
Worksheet 11 Use FuncT11.m as a template for typing the y = f(t,y) for a system of DEs.