fail(sb.toString());
}
}
private void testSeveral(final Integrator I) {
testSingle(I, "f(x) = 1", new Constant(1.0), 0.0, 1.0, 1.0);
testSingle(I, "f(x) = x", new Identity(), 0.0, 1.0, 0.5);
testSingle(I, "f(x) = x^2", new Square(), 0.0, 1.0, 1.0/3.0);
testSingle(I, "f(x) = sin(x)", new Sin(), 0.0, Constants.M_PI, 2.0);
testSingle(I, "f(x) = cos(x)", new Cos(), 0.0, Constants.M_PI, 0.0);
testSingle(I, "f(x) = Gaussian(x)", new NormalDistribution(), -10.0, 10.0, 1.0);