public void checkSingleTabulated(final Ops.DoubleOp f, final String tag, final double expected, final double tolerance) {
final int order[] = { 6, 7, 12, 20 };
final TabulatedGaussLegendre quad = new TabulatedGaussLegendre();
for (final int element : order) {
quad.setOrder(element);
final double realised = quad.evaluate(f);
if (Math.abs(realised-expected) > tolerance)
fail(" integrating " + tag + "\n"
+ " order " + element + "\n"
+ " realised: " + realised + "\n"
+ " expected: " + expected);