gray/src/math.f90
Michele Guerini Rocco 73bd010458
remove unnecessary implicit statements
Only a single `implicit none` at the start of each module is required.
2024-02-09 11:16:18 +01:00

20 lines
351 B
Fortran

! Miscellaneous mathematical functions
module math
implicit none
contains
pure function fact(k)
! Factorial function k!
! Note: the result is a real number
use const_and_precisions, only : wp_
integer, intent(in) :: k
real(wp_) :: fact
fact = gamma(real(1 + k, kind=wp_))
end function fact
end module math