compute_double_factorials Subroutine

private subroutine compute_double_factorials()

compute and store double factorials upto 12!!

Arguments

None

Contents


Source Code

subroutine compute_double_factorials()

    integer :: i

    double_factorial(-1) = 1.0_dp
    double_factorial(0) = 1.0_dp
    double_factorial(1) = 1.0_dp
    do i = 2, MAX_ORDER
        double_factorial(i) = double_factorial(i-2) * real(i, dp)
    end do

end subroutine compute_double_factorials