An example of Gaussian quadrature rule by using two approaches

Here is an example of using Gaussian quadrature rule through two approaches:


by applying it on the original integrand by updating the argument of the integrand


by applying it to the equivalent integrand because of the need to change the limits of integration to: -1 to 1.


This post is brought to you by