result = integrator.integrate(f, min, max);
assertEquals(expected, result, tolerance);
}
public void testQuinticFunction() throws MathException {
UnivariateRealFunction f = new QuinticFunction();
UnivariateRealIntegrator integrator = new LegendreGaussIntegrator(3, 64);
double min, max, expected, result;
min = 0; max = 1; expected = -1.0/48;
result = integrator.integrate(f, min, max);