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-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 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

      public static void main(String[] args)
      Parameters:
      args - String[] not used