calculate_legendre Subroutine

public subroutine calculate_legendre(n, x, p, dp)

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)


Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n
real(kind=long), intent(in) :: x
real(kind=long), intent(out) :: p
real(kind=long), intent(out) :: dp