Question: Consider the function f ( x ) = - pi / 1 6 + integral from 0 to x of ( e ^ - y
Consider the function
fxpi integral from to x of eydy
Perform the following
Write a function testfunctionthat implements fxusing the Matlab integralfunction It should have a single input variable and a single output variable. Put the function at the end of your script.
Write code to find the root of the function using the Matlab function fzero. Take as the initial guess, and store the result root in variable xroot.
Evaluate the function testfunctionat xroot, and store the value in variable zeroval.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
