ajdmom.utils.dbfactorial

ajdmom.utils.dbfactorial(n)[source]

double factorial \(n!!\)

Parameters:

n (int) – number \(n\)

Returns:

value of \(n!! = n(n-2)(n-4)\cdots 4 \cdot 2\) for even \(n\), \(n!! = n(n-2)(n-4)\cdots 3 \cdot 1\) for odd \(n\)

Return type:

float