Calculates areas or volumes given sets of either coordinates or areas with a choice of trapezoidal or Simpson’s methods.