Question: 7. Write a program to compute a composite 2 point Gauss quadrature. The input should be a function f,a,b and the number of subintervals to
7. Write a program to compute a composite 2 point Gauss quadrature. The input should be a function f, a, b, and the number of subintervals to use n Compare the accuracy of the 2-point Gauss quadrature on fx) -sin (x) to com- posite Simpson's method, using the interval [0, 2], with (a) 10 subintervals; (b) 100 subintervals. m2on 21verify that the 2point Gauss quadrature 7. Write a program to compute a composite 2 point Gauss quadrature. The input should be a function f, a, b, and the number of subintervals to use n Compare the accuracy of the 2-point Gauss quadrature on fx) -sin (x) to com- posite Simpson's method, using the interval [0, 2], with (a) 10 subintervals; (b) 100 subintervals. m2on 21verify that the 2point Gauss quadrature
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
