Gromacs  2018.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
polynomials.h File Reference
#include "gromacs/utility/real.h"
+ Include dependency graph for polynomials.h:

Description

Declares routine for computing a Legendre polynomial.

Author
David van der Spoel david.nosp@m..van.nosp@m.dersp.nosp@m.oel@.nosp@m.icm.u.nosp@m.u.se

Functions

real LegendreP (real x, unsigned int m)
 Return Legendre polynomial value Pm(x) http://en.wikipedia.org/wiki/Legendre_polynomials. More...
 

Function Documentation

real LegendreP ( real  x,
unsigned int  m 
)

Return Legendre polynomial value Pm(x) http://en.wikipedia.org/wiki/Legendre_polynomials.

Parameters
[in]xThe value
[in]mThe order of the polynomial (0-4 are supported)
Returns
Pm(x)