final CubicRealRootFinder cubic = new CubicRealRootFinder();
final java.lang.Double[] roots = cubic.getRoots(f);
out.println(Arrays.toString(roots));
final BrentSingleRootFinder brent = new BrentSingleRootFinder();
final java.lang.Double root = brent.getRoot(f, -10.0, 10.0);
out.println(root);
try {
out.println("Trying to call getRoot with arguments that don't bracket the root...");
brent.getRoot(f, -1.0, 1.0);
} catch (final java.lang.IllegalArgumentException e) {
out.println("IllegalArgumentException called");
}
}