Package org.djutils.polynomialroots
Class BenchmarkPolynomialRoots
- java.lang.Object
-
- org.djutils.polynomialroots.BenchmarkPolynomialRoots
-
public final class BenchmarkPolynomialRoots extends Object
BenchmarkPolynomialRoots tests the speed of different algorithms.Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
cubicTest()
Test the cubic solver.static void
cubicTestAberthEhrlich()
Test the cubic solver.static void
cubicTestDurandKerner()
Test the cubic solver.static void
cubicTestNewtonFactor()
Test the cubic solver.static void
main(String[] args)
static void
quadraticTest()
Test the solver for quadratic (and simpler) cases and ensure that the cubic solver falls back to the quadratic solver when appropriate.static void
quarticTest()
Test the quartic solver.static void
quarticTestAberthEhrlich()
Test the quartic solver.static void
quarticTestDurandKerner()
Test the quartic solver.
-
-
-
Method Detail
-
quadraticTest
public static void quadraticTest()
Test the solver for quadratic (and simpler) cases and ensure that the cubic solver falls back to the quadratic solver when appropriate.
-
cubicTest
public static void cubicTest()
Test the cubic solver.
-
quarticTest
public static void quarticTest()
Test the quartic solver.
-
cubicTestDurandKerner
public static void cubicTestDurandKerner()
Test the cubic solver.
-
quarticTestDurandKerner
public static void quarticTestDurandKerner()
Test the quartic solver.
-
cubicTestAberthEhrlich
public static void cubicTestAberthEhrlich()
Test the cubic solver.
-
quarticTestAberthEhrlich
public static void quarticTestAberthEhrlich()
Test the quartic solver.
-
cubicTestNewtonFactor
public static void cubicTestNewtonFactor()
Test the cubic solver.
-
main
public static void main(String[] args)
- Parameters:
args
- String[] not used
-
-