Logfactorial.m

From Spinach Documentation Wiki
Jump to: navigation, search

Logarithm of the factorial function.

Syntax

    lf=logfactorial(n)

Description

Avoids complications with factorials of large numbers overflowing 64-bit numbers.

Arguments

    n - non-negative integer number

Outputs

    lf - logarithm of the factorial of n

Notes

Double precision overflow is a persistent problem with Clebsch-Gordan coefficients and other objects that involve factorials.

See also

clebsch_gordan.m, wigner_3j.m, wigner_6j.m


Version 2.1, authors: Ilya Kuprov