类 PolynomialFunctionTest

java.lang.Object
org.hipparchus.analysis.polynomials.PolynomialFunctionTest

public final class PolynomialFunctionTest extends Object
测试 UnivariateFunction 的 PolynomialFunction 实现。
  • 字段详细资料 链接图标

    • tolerance 链接图标

      protected double tolerance
      测试的误差容限
  • 构造器详细资料 链接图标

    • PolynomialFunctionTest 链接图标

      public PolynomialFunctionTest()
  • 方法详细资料 链接图标

    • testConstants 链接图标

      public void testConstants()
      测试常数多项式的值。

      在任何地方的值为2.5。

    • testLinear 链接图标

      public void testLinear()
      测试线性多项式的值。

      这将测试函数 f(x) = 3*x - 1.5

      这将有值 f(0) = -1.5, f(-1) = -4.5, f(-2.5) = -9, f(0.5) = 0, f(1.5) = 3f(3) = 7.5

    • testQuadratic 链接图标

      public void testQuadratic()
      测试二阶多项式。

      这将测试函数 f(x) = 2x^2 - 3x -2 = (2x+1)(x-2)

    • testQuintic 链接图标

      public void testQuintic()
      这将测试五次函数 f(x) = x^2(x-5)(x+3)(x-1) = x^5 - 3x^4 -13x^3 + 15x^2

    • testfirstDerivativeComparison 链接图标

      public void testfirstDerivativeComparison()
      通过比较测试 firstDerivative 函数

      这将测试函数 f(x) = x^3 - 2x^2 + 6x + 3, g(x) = 3x^2 - 4x + 6h(x) = 6x - 4

    • testString 链接图标

      public void testString()
    • testAddition 链接图标

      public void testAddition()
    • testSubtraction 链接图标

      public void testSubtraction()
    • testMultiplication 链接图标

      public void testMultiplication()
    • testSerial 链接图标

      public void testSerial()
    • testMath341 链接图标

      public void testMath341()
      通过比较测试 firstDerivative 函数

      这将测试函数 f(x) = x^3 - 2x^2 + 6x + 3, g(x) = 3x^2 - 4x + 6h(x) = 6x - 4

    • testAntiDerivative 链接图标

      public void testAntiDerivative()
    • testAntiDerivativeConstant 链接图标

      public void testAntiDerivativeConstant()
    • testAntiDerivativeZero 链接图标

      public void testAntiDerivativeZero()
    • testAntiDerivativeRandom 链接图标

      public void testAntiDerivativeRandom()
    • testIntegrate 链接图标

      public void testIntegrate()
    • testIntegrateInfiniteBounds 链接图标

      public void testIntegrateInfiniteBounds()
    • testIntegrateBadInterval 链接图标

      public void testIntegrateBadInterval()
    • checkPolynomial 链接图标

      public void checkPolynomial(PolynomialFunction p, String reference)