Package com.opengamma.analytics.math.rootfinding

Examples of com.opengamma.analytics.math.rootfinding.CubicRealRootFinder


  }

  // @export "cubicRealRootFindingDemo"
  public static void cubicRealRootFindingDemo(PrintStream out) {
    RealPolynomialFunction1D f = getFunction();
    CubicRealRootFinder cubic = new CubicRealRootFinder();
    java.lang.Double[] roots = cubic.getRoots(f);
    out.println(Arrays.toString(roots));
  }
View Full Code Here


  // @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);
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.math.rootfinding.CubicRealRootFinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.