PolynomialsLegendreP(Int32, Double, Double, Double, Double) Method |
Computes the value of the Legendre polynomial of degree n
and its first and second derivatives at a given point.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static void LegendreP(
int n,
double x,
out double y,
out double dy,
out double d2y
)
Parameters
- n Int32
- Degree of the polynomial (>= 0).
- x Double
- Point at which the computation is performed (-1 <= x <= 1).
- y Double
- Output: value of the polynomial at x.
- dy Double
- Output: value of the first derivative at x.
- d2y Double
- Output: value of the second derivative at x.
RemarksNote:
This C++ implementation is based on the Fortran function
VALEPO
from
"Fortran routines for spectral methods"
by Daniele Funaro
Department of Mathematics
University of Pavia
Via Abbiategrasso 209, 27100 Pavia, Italy
e-mails: fun18@ipvian.ian.pv.cnr.it
funaro@dragon.ian.pv.cnr.it
See Also