|
|
◆ legendred()
| double legendred |
( |
unsigned int |
n, |
|
|
double |
x |
|
) |
| |
Derivative of Legendre polynomial Pn(x)
- Purpose
- legendred computes the derivative of the Legendre polynomial Pn(x).
- Returns
- Derivative of Legendre polynomial Pn(x).
- Parameters
-
| [in] | n | Degree of polynomial n. |
| [in] | x | Argument x (|x| <= 1). |
- Error handling
- If |x| > 1, domain error (EDOM) occurs.
- Range error (ERANGE) may occur.
- Note
- Note that the worst errors occur when the degree increases, values greater than ~120 are very unlikely to produce sensible results. Further the relative errors are likely to grow arbitrarily large when the function is very close to a root.
- Reference
- boost/math/special_functions
|