xmolecule
Manual
Modules
Block Data
Procedures
Derived Types
Programs
factorial2
Function
Gnu General Public License V3
18 statements
sph_harmonics
factorial2
Contents
public pure function factorial2(n, n2) result(f)
factorial(n,m) = m! / n! for n < m = 1 otherwise thus, factorial(1,2) = 2; factorial(2,1) = 1
Arguments
Type
Intent
Optional
Attributes
Name
integer,
intent(in)
::
n
integer,
intent(in),
optional
::
n2
Return Value
real(kind=long)