ME2001_HW3 - g(x) for x as an input b. Write a MATLAB...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ME 2001-002 Homework # 3 Spring 2009 Due Date: February 24, 2009 (Tuesday) Write a well documented (add comment lines in function file as well as in main program to help user understand purpose of your program) MATLAB program to find real roots of a non-linear equation given below using Fixed-point Iteration Method . g G tan ±g² Start with g ³ G 2 , and tolerance tol = 0.005. Also limit your iterations to maxiter = 1000. Tasks: a. Write a function file where you will calculate the function value
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: g(x) for x as an input b. Write a MATLAB program (Script file) where you will call the function file mentioned above. Use flowchart given in the class. Submit the following: a. Main MATLAB code Save this program as FirstnameLastname.m b. Function file. Save this function file as FirstnameLastname_Fx.m Note: Use the sample program written for incremental search method....
View Full Document

This document was uploaded on 02/09/2011.

Ask a homework question - tutors are online