======================================= Integrating f(x) = x^2 from 0 to 1: Integral = 0.33333333333333331 Error = 9.07834230180193640E-004 Number of function calls = 28 ======================================= Integrating g(x) = ln(x)/sqrt(x) from 0 to 1: Integral = -3.9999856594308127 Error = 1.22039834470195874E-003 Number of function calls = 1064 ======================================= Integrating h(x) = 2*sin(x)+4*cos(x) from 0 to pi: Integral = 3.9999992192236782 Error = 2.65860203284143609E-003 Number of function calls = 64