Class OrthogonalPolynomial


public class OrthogonalPolynomial
extends R1ToR1Series
OrthogonalPolynomial implements a Single Basis Orthogonal Polynomial used in the Construction of the Quadrature. The References are:

  • Abramowitz, M., and I. A. Stegun (2007): Handbook of Mathematics Functions Dover Book on Mathematics
  • Gil, A., J. Segura, and N. M. Temme (2007): Numerical Methods for Special Functions Society for Industrial and Applied Mathematics Philadelphia
  • Press, W. H., S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery (2007): Numerical Recipes: The Art of Scientific Computing 3rd Edition Cambridge University Press New York
  • Stoer, J., and R. Bulirsch (2002): Introduction to Numerical Analysis 3rd Edition Springer
  • Wikipedia (2019): Gaussian Quadrature https://en.wikipedia.org/wiki/Gaussian_quadrature


Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • OrthogonalPolynomial

      public OrthogonalPolynomial​(java.util.TreeMap<java.lang.Integer,​java.lang.Double> termWeightMap) throws java.lang.Exception
      OrthogonalPolynomial Constructor
      Parameters:
      termWeightMap - Error Term Weight Map
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • degree

      public int degree()
      Retrieve the Degree of the Orthogonal Polynomial
      Returns:
      Degree of the Orthogonal Polynomial
    • degreeCoefficient

      public double degreeCoefficient()
      Retrieve the Coefficient of the Degree of the Orthogonal Polynomial
      Returns:
      Coefficient of the Degree of the Orthogonal Polynomial
    • legendreNodeWeight

      public double legendreNodeWeight​(double xNode) throws java.lang.Exception
      Compute the Legendre (i.e., Unit Orthogonal Weight) Node Weight
      Parameters:
      xNode - The Node X
      Returns:
      The Legendre (i.e., Unit Orthogonal Weight) Node Weight
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
    • lobattoNodeWeight

      public double lobattoNodeWeight​(double xNode) throws java.lang.Exception
      Compute the Lobatto (i.e., Unit Orthogonal Weight) Node Weight
      Parameters:
      xNode - The Node X
      Returns:
      The Lobatto (i.e., Unit Orthogonal Weight) Node Weight
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid