Calculate the value of the Legendre polynomial and its derivative input : n = the order of poly., x = the point to be calculated results : p = P_n(x), dp = P'_n(x)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n | |||
| real(kind=long), | intent(in) | :: | x | |||
| real(kind=long), | intent(out) | :: | p | |||
| real(kind=long), | intent(out) | :: | dp |