Package org.djutils.math.polynomialroots
Class BenchmarkPolynomialRoots
java.lang.Object
org.djutils.math.polynomialroots.BenchmarkPolynomialRoots
BenchmarkPolynomialRoots tests the speed of different algorithms.
 
 Copyright (c) 2020-2025 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
Modifier and TypeMethodDescriptionstatic voidTest the cubic solver.static voidTest the cubic solver.static voidTest the cubic solver.static voidTest the cubic solver.static voidstatic voidTest the solver for quadratic (and simpler) cases and ensure that the cubic solver falls back to the quadratic solver when appropriate.static voidTest the quartic solver.static voidTest the quartic solver.static voidTest the quartic solver. 
- 
Method Details
- 
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
- Parameters:
 args- String[] not used
 
 -