Package org.djutils.polynomialroots
Class BenchmarkPolynomialRoots
java.lang.Object
org.djutils.polynomialroots.BenchmarkPolynomialRoots
BenchmarkPolynomialRoots tests the speed of different algorithms.
Copyright (c) 2020-2024 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 void
Test the cubic solver.static void
Test the cubic solver.static void
Test the cubic solver.static void
Test the cubic solver.static void
static void
Test the solver for quadratic (and simpler) cases and ensure that the cubic solver falls back to the quadratic solver when appropriate.static void
Test the quartic solver.static void
Test the quartic solver.static void
Test 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
-