Question: C++ 2. Write a program that uses both functions trapezoid and simpson to approximate 2.0 dx 1.0 for n = 2, 4, and 6, Your
C++


2. Write a program that uses both functions trapezoid and simpson to approximate 2.0 dx 1.0 for n = 2, 4, and 6, Your program should display the exact value of the definite integral (given that Ja In b - In a) and calculate the error in each approxima tion (exact - approx). Display your results in a table with these headings
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
