1 16 package org.apache.commons.math.analysis; 17 18 import org.apache.commons.discovery.tools.DiscoverClass; 19 20 46 public abstract class UnivariateRealSolverFactory { 47 50 protected UnivariateRealSolverFactory() { 51 } 52 53 57 public static UnivariateRealSolverFactory newInstance() { 58 UnivariateRealSolverFactory factory = null; 59 try { 60 DiscoverClass dc = new DiscoverClass(); 61 factory = (UnivariateRealSolverFactory) dc.newInstance( 62 UnivariateRealSolverFactory.class, 63 "org.apache.commons.math.analysis.UnivariateRealSolverFactoryImpl"); 64 } catch(Throwable t) { 65 return new UnivariateRealSolverFactoryImpl(); 66 } 67 return factory; 68 } 69 70 76 public abstract UnivariateRealSolver newDefaultSolver( 77 UnivariateRealFunction f); 78 79 85 public abstract UnivariateRealSolver newBisectionSolver( 86 UnivariateRealFunction f); 87 88 94 public abstract UnivariateRealSolver newBrentSolver( 95 UnivariateRealFunction f); 96 97 103 public abstract UnivariateRealSolver newNewtonSolver( 104 DifferentiableUnivariateRealFunction f); 105 106 112 public abstract UnivariateRealSolver newSecantSolver( 113 UnivariateRealFunction f); 114 } 115 | Popular Tags |