Question: Use Matlap or C language which ever easier with you, thanks Your program files*.cpp, *.m. *.java etc.), separate for each question. Code should be commented

Use Matlap or C language which ever easier with you, thanks

Use Matlap or C language which ever easier with you, thanks Your

Your program files*.cpp, *.m. *.java etc.), separate for each question. Code should be commented A single Word document that includes the code for all their questions, their outputs (figures) and the table (if applicable), mentioning any assumptions you may have made and brief explanation of your code Submission Items: . Question 2: [15 points] Consider the function, f(x) = e-"(3.2 * sin -0.5 cosx) Write a computer program that uses Bisection Method, and calculates the root of the above function. Use the interval [3.4]. Continue the iterations until falls below the pre-specified criteria of ,-0.001%. The output table should show the following parameters for each iteration i: iteration number, values of x and xi, value of functions at xu and xl, test value and true approximate percent relative errors. Ensure that the number of function evaluations are minimized and the assumptions of Bisection method are valid before each iteration. Note: See figure 5.11 for the pseudocode of Bisection Method FIGURE 5.11 Pseudocode for bisection sub program which minimizes function evaluations FUNCTION Bisect(xl , xu, es, imax , xr, iter, ea) iter 0 D0 iter iter + 1 IF xr 0 THEN eaABS( (xr - xrold) / xr) * 100 END IF test = fl * fr IF test

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!