The FL factorial function from [1].
Note
Coded from [1] with some modifications.
SOURCE
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n |
function FL(n) implicit none real(wp) :: FL integer,intent(in) :: n integer :: i FL = one if (n==0 .or. n==1) return do i=2,n FL = FL*i end do end function FL