HW3 - MAE 107 – Computational Methods Summer Session II...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: MAE 107 – Computational Methods Summer Session II 2009 Homework # 3 due on Wednesday, August 26 in class 3 problems – 20 points Guidelines : Please turn in a neat homework that gives all the formulae that you have used and all the necessary information for the grader to understand your solution. Also, if the problem requires you to write a MATLAB code, please turn in a copy of the code you used, carefully documented with comments and using proper indentation, as well as the requested ouputs and graphs, along with the written explanation of your solution. Use the codes presented in class only as a guide: just copying them or using them directly to compute the solution is not an acceptable answer. You need to write a code that does specifically what the questions ask you to do (be careful: in general, the homework problems ask something rather different than what the codes used in class were doing). Problem 1 – 10 points 1. Create a function FalsePos.m that solves the non-linear equation f ( x ) = 0 using the False Position method on a bracket [ a,b ]. Your function should have four inputs: a function handle f , the lower limit of the bracket a , its upper limit b and a maximum approximate relative error r . It should first test that [ a,b ] is indeed a bracket (that means that f changes sign on this interval). If that is not the case, the function should return an error message. If [ a,b ] is a bracket, the function should perform as many iterations as necessary to obtain an approximate solution...
View Full Document

{[ snackBarMessage ]}

Page1 / 3

HW3 - MAE 107 – Computational Methods Summer Session II...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online