21.17 Develop a user-friendly computer program for the multiple- application version of Simpson's rule based on Fig. 21.13c. Test it by duplicating the computations from Example 21.5. 21.13 The function f(x) = 2e¯1.5x can be used to generate the fol- lowing table of unequally spaced data: x 0 0.05 0.15 0.25 0.35 0.475 0.6 f(x) 2 1.8555 1.5970 1.3746 1.1831 0.9808 0.8131 Evaluate the integral from a = 0 to b = 0.6 using (a) analytical means, (b) the trapezoidal rule, and (c) a combination of the trap- ezoidal and Simpson's rules; employ Simpson's rules wherever possible to obtain the highest accuracy. For (b) and (c), compute the percent relative error (ε,).

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question
Only do Problem 22.17. Start with trapezoid rule for n = 1, 2, and 4. Use Romberg
Integration to improve the approximation first from O(h2) to O(h4), then
from O(h4) to O(h6).
 
21.17 Develop a user-friendly computer program for the multiple-
application version of Simpson's rule based on Fig. 21.13c. Test it
by duplicating the computations from Example 21.5.
Transcribed Image Text:21.17 Develop a user-friendly computer program for the multiple- application version of Simpson's rule based on Fig. 21.13c. Test it by duplicating the computations from Example 21.5.
21.13 The function f(x) = 2e¯1.5x can be used to generate the fol-
lowing table of unequally spaced data:
x
0 0.05
0.15
0.25 0.35 0.475
0.6
f(x) 2 1.8555 1.5970 1.3746 1.1831 0.9808 0.8131
Evaluate the integral from a = 0 to b = 0.6 using (a) analytical
means, (b) the trapezoidal rule, and (c) a combination of the trap-
ezoidal and Simpson's rules; employ Simpson's rules wherever
possible to obtain the highest accuracy. For (b) and (c), compute
the percent relative error (ε,).
Transcribed Image Text:21.13 The function f(x) = 2e¯1.5x can be used to generate the fol- lowing table of unequally spaced data: x 0 0.05 0.15 0.25 0.35 0.475 0.6 f(x) 2 1.8555 1.5970 1.3746 1.1831 0.9808 0.8131 Evaluate the integral from a = 0 to b = 0.6 using (a) analytical means, (b) the trapezoidal rule, and (c) a combination of the trap- ezoidal and Simpson's rules; employ Simpson's rules wherever possible to obtain the highest accuracy. For (b) and (c), compute the percent relative error (ε,).
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY