mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches

Declares and defines Legendre polynomials. More...

Declares and defines Legendre polynomials.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

Definition in file legendre.hpp.

#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  mx
 The mxlib c++ namespace.

Functions

template<typename T>
mx::math::func::legendre_p (int n, T x)
 Legendre Polynomials.
template<typename T>
mx::math::func::orthoNormalLegendre (int n, T x)
 The orthonormal Legendre polynomials.

Function Documentation

◆ orthoNormalLegendre()

template<typename T>
T mx::math::func::orthoNormalLegendre ( int n,
T x )

The orthonormal Legendre polynomials.

A version of the Legendre polynomials which are orthonormal on the interval -1 <= x <= 1.

Returns
the value of the n-th orthonormal Legendre polynomial at x.

Definition at line 87 of file legendre.hpp.

References legendre_p().