Question: 1- Write a C++ program to solve Exercise 1 - page 352 (only part c) of Textbook. Exercises for Introduction to Quadrature us e 1.

1- Write a C++ program to solve Exercise 1 - page 352 (only part c) of Textbook. Exercises for Introduction to Quadrature us e 1. Consider integration of S(x) over the fixed interval [a,b] = [0, 1). Apply the vi quadrature formulas (4) through (7). The step sizes are h = 1.4 = 1 = 1 h = for the trapezoidal rule, Simpson's rule, Simpson's rule, and Boole's respectively. (a) f(x) = sin(*) (b) f(x) = 1 +e-cos(4x) (c) f(x) = sin(/) Remark. The true values of the definite integrals arc (a) 2/1 = 0.636619772367..., (b) (18e - cos(4) + 4 sin(4))/(178) = 1.007459631397..... and (c) 2(sin(!) cos(1)) = 0.602337357879.... Graphs of the functions are shown in Figures 7.5(a) through (c), respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
