Question: 2) Imagine you have two mathematical functions written in Matlab, perhaps y = misc_math_func1(x) and y = misc_math_func2(x). Last week you wrote a function to

 2) Imagine you have two mathematical functions written in Matlab, perhaps

2) Imagine you have two mathematical functions written in Matlab, perhaps y = misc_math_func1(x) and y = misc_math_func2(x). Last week you wrote a function to find the total area between the two functions from Xo to xt with inputs xo, xf, and dx. If you didn't, you can find my version in the solution to last week's homework. Modify this function so that it only takes xo and xf as inputs and so that it determines a value of dx automatically that means that the answer is likely to be within 0.1% of the correct answer (meaning that continued changing of dx doesn't change the resulting answer very much.) Note that if misc_math_func2 is a constant function = 0, you have a tool to get the integral of any integrable function that you can express in Matlab. (In fact, the difference of two functions is just a third function, so even last week you were really just integrating a single function...) Page 1 of 1 here are two text boxes above. If you have a long function, you can put half in the first and half in the second 2) Imagine you have two mathematical functions written in Matlab, perhaps y = misc_math_func1(x) and y = misc_math_func2(x). Last week you wrote a function to find the total area between the two functions from Xo to xt with inputs xo, xf, and dx. If you didn't, you can find my version in the solution to last week's homework. Modify this function so that it only takes xo and xf as inputs and so that it determines a value of dx automatically that means that the answer is likely to be within 0.1% of the correct answer (meaning that continued changing of dx doesn't change the resulting answer very much.) Note that if misc_math_func2 is a constant function = 0, you have a tool to get the integral of any integrable function that you can express in Matlab. (In fact, the difference of two functions is just a third function, so even last week you were really just integrating a single function...) Page 1 of 1 here are two text boxes above. If you have a long function, you can put half in the first and half in the second

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!