https://www.bragitoff.com/2015/08/c-program-for-trapezoidal-rule-for-the-evaluation-of-definite-integrals/
C++ Program for Trapezoidal Rule for the Evaluation of Definite Integrals