// @export "rootFindingDemo"
public static void rootFindingDemo(final PrintStream out) {
final RealPolynomialFunction1D f = getFunction();
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);