Question: EE 221 Computing for Engineers Homework #10 Problem #1 (30 points): Let the mathematical function f(x) be defined as: f(x) = exp(-0.5x) cos(10x) Write a

 EE 221 Computing for Engineers Homework #10 Problem #1 (30 points):

EE 221 Computing for Engineers Homework #10 Problem #1 (30 points): Let the mathematical function f(x) be defined as: f(x) = exp(-0.5x) cos(10x) Write a Matlab function called Newton1 that would find the zero based on a passing input argument xo. The function should starts as: function x Newton1(x0) % enter your code here end Submit the function as am file. Apply different initial guesses to find the zero (0, 0.1, 0.2, 0.3 & 0.4). Hint: the while loop should have the following statement: while((abs(fx)>5 eps)||(abs(dx)>5*eps)I(nc10000)) %where n is the iteration number end Problem #2 (20 points): a) Let the mathematical function f(x) be defined as: f(x) exp(-0.5x) cos (10x) Use fzero) to find the zero of f(x) @ x0-0.1 b) Find the roots of the following polynomial using roots command g(x)-x4-2x3 +x-5 Submit the script as a.m file. (Note: Script is a list of commands which is different from functions)

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!