%% Plot Logarithmic Gamma Function
% Plot the logarithmic gamma function on the interval from 0 to 10.

syms x
fplot(gammaln(x),[0 10])
grid on

%
% To see the negative values better, plot the same function on the interval from 1 to 2.

fplot(gammaln(x),[1 2])
grid on

% Copyright 2012 The MathWorks, Inc.