Question: Utilize either the MATLAB function quad or, preferably, the MATLAB function integral instead of Simpsons rule. Submit your program in an m-file named ex14p8_LastName.m. Make
Utilize either the MATLAB function quad or, preferably, the MATLAB function integral instead of Simpsons rule. Submit your program in an m-file named ex14p8_LastName.m. Make sure to specify format long to see the difference in the result versus the results with Simpsons rule described in the exercise 14.8 description.

14.8 The luminous efficiency (ratio of the energy in the visible spectrum to the total energy) of a black body radiator may be expressed as a percent age by the formula: 2.5 0.5 -0.5 -2 -2.5 -3 -2 2 FIGURE 14.9 A trajectory of Van der Pol's equation. 7x 10-5 E = 64.77T-4 X-5 (ei .432/Tx-1 )-1 4x 10-5 where Tis the absolute temperature in degrees Kelvin, x is the wave- length in cm, and the range of integration is over the visible spectrum. Write a general function simp(fn, a, b, h) to implement Simpsons rule as given in Equation (14.4) Taking T= 3500K, use simp to compute E, firstly with 10 intervals (n=5), and then with 20 intervals (n= 10), and compare your results. (Answers: 14.512725% for n=5; 14.512667% for n= 10)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
