function value = alnfac ( n ) %% ALNFAC computes the logarithm of the factorial of N. % % Modified: % % 27 January 2008 % % Author: % % John Burkardt % % Parameters: % % Input, integer N, the argument of the factorial. % % Output, real VALUE, the logarithm of the factorial of N. % value = alngam ( n + 1 );