
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

MONTGOMERY COLLEGE, ROCKVILLE Physics, Engineering and Geosciences Department ES 240 – Scientific and Engineering Computation Spring 2009
Write a Matlab Script and several functions to accomplish the following: Note: All Matlab codes through which you generated your figures and results must be submitted No report required for this project
Part A: Theory
i. 0. 3 sin x =cos x ii. y = 0.3*exp(-x+4)+cos(-x);
a) Determine the root(s) of the equation graphically b) Determine the roots of the equation using the bisection, false position, fixed-point iteration, secant and Newton-Raphson Methods o use -3 and 3 as your initial interval o for the bisection method, use two different stopping methods to end your iterations o For each method, generate a plot of number of iterations versus true relative error o Compare the methods c) Use Matlab’s ‘ROOTS’ function to determine the roots
a) Graphically, b) Numerically with the fminsearch function c) Substitute the results of (b) back into the function to determine the minimum f(x,y).
Page 1 of 1