ROTEX
Source Files
Modules
Procedures
Derived Types
Program
log_factorial
Interface
MIT
4 statements
Source File
rotex__functions.f
rotex__functions
log_factorial
Contents
Module Procedures
log_factorial_i
log_factorial_r
public interface log_factorial
ln(!n)
Module Procedures
private pure elemental module function log_factorial_i(n) result(res)
returns ln(n!) for integer n
Arguments
Type
Intent
Optional
Attributes
Name
integer,
intent(in)
::
n
Return Value
real(kind=dp)
private pure elemental module function log_factorial_r(n) result(res)
returns ln(n!) for real n
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=dp),
intent(in)
::
n
Return Value
real(kind=dp)