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.3179.0 (4.8.3179.0)
Syntax public 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 in which the computation is performed, -1 <= x <= 1.
- y Double
- Output: value of the polynomial in x.
- dy Double
- Output: value of the first derivative in x.
- d2y Double
- Output: value of the second derivative in x.
Remarks Note:
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