Gromacs  2026.0-dev-20241106-9ba7f4d
 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:
+ This graph shows which files directly or indirectly include this file:

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)