/* aquad3.h adaptive quadrature numerical integration */ /* for a desired accuracy on irregular functions. */ /* define the function to be integrated as: */ /* double f(double x) */ /* { */ /* // compute value */ /* return value; */ /* } */ /* */ /* integrate from xmin to xmax */ /* approximate desired absolute error in all intervals, eps */ /* accuracy absolutely not guaranteed */ double aquad3(double f(double x), double xmin, double xmax, double eps);