Menu

Need Help Write Matlab Codes Following Question Also Need Help Answering Questions Text Wa Q43869311

I need help to write MATLAB codes of the following question.And also I need help with answering the questions in thetext.
We want to estimate the integral:-2п Вe-(ойотз)? dx. 0.0003
with MATLAB program. The integral can be estimatedanalytically with at least ten decimal places with the value:

Ipef = 0.0039/T.
Use this value as a reference value. Begin estimating theintegral over the entire interval with MATLAB’s integral. Start with the standardtolerance. Then set a higher tolerance. Does that match thereference value? Then solve the integral with the trapezoidal rule.Start by dividing the interval into 20 parts. How much and why doesthe integral value differ from the reference value? Then halve thestep length in the trapezoidal rule until:
Iref – Irap < 5 · 10-9
How many halves did you need? How many function evaluationshas the trapezoidal rule done? Was integral more effective? Why?

-2п Вe-(ойотз)? dx. 0.0003 Ipef = 0.0039/T. Iref – Irap < 5 · 10-9 Show transcribed image text -2п Вe-(ойотз)? dx. 0.0003
Ipef = 0.0039/T.
Iref – Irap

Expert Answer


Answer to I need help to write MATLAB codes of the following question. And also I need help with answering the questions in the te…

OR