public static PolynomialRoots createRootFinder ( int maxCoefficients , RootFinderType which ) { switch ( which ) { case STURM : FindRealRootsSturm sturm = new FindRealRootsSturm ( maxCoefficients , - 1 , 1e-10 , 200 , 200 ) ; return new WrapRealRootsSturm ( sturm ) ; case EVD : return new RootFinderCompanion ( ) ; default : throw new IllegalArgumentException ( "Unknown algorithm: " + which ) ; } }
Creates different polynomial root finders .