Class FieldChebyshevSecondKindRuleFactory<T extends CalculusFieldElement<T>>

java.lang.Object
org.hipparchus.analysis.integration.gauss.FieldAbstractRuleFactory<T>
org.hipparchus.analysis.integration.gauss.FieldChebyshevSecondKindRuleFactory<T>
Type Parameters:
T - type of the field elements
All Implemented Interfaces:
FieldRuleFactory<T>

public class FieldChebyshevSecondKindRuleFactory<T extends CalculusFieldElement<T>> extends FieldAbstractRuleFactory<T>
Factory that creates field-based Gauss-Chebyshev quadrature rules of the second kind.

The generated rules approximate integrals of the form:

     integral from -1 to 1 of f(x) sqrt(1 - x^2) dx
 

using:

     sum from i = 1 to n of w_i f(x_i)
 

where:

     x_i = cos(i pi / (n + 1)), i = 1, ..., n
     w_i = pi / (n + 1) sin^2(i pi / (n + 1))
 
  • Constructor Details

    • FieldChebyshevSecondKindRuleFactory

      public FieldChebyshevSecondKindRuleFactory(Field<T> field)
      Constructor.
      Parameters:
      field - field to which rule coefficients belong
  • Method Details

    • computeRule

      protected Pair<T[],T[]> computeRule(int numberOfPoints)
      Computes the Gauss-Chebyshev quadrature rule of the second kind.
      Specified by:
      computeRule in class FieldAbstractRuleFactory<T extends CalculusFieldElement<T>>
      Parameters:
      numberOfPoints - order of the rule to be computed
      Returns:
      nodes and weights of the quadrature rule