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

Description

Implements help function to compute Legendre polynomials.

Author
David van der Spoel david.nosp@m..van.nosp@m.dersp.nosp@m.oel@.nosp@m.icm.u.nosp@m.u.se
Anders Gärdenäs ander.nosp@m.s.ga.nosp@m.rdena.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om

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)