%% Evaluate Gamma Function
% Evaluate the gamma function with a scalar and a vector.
% Evaluate \Gamma(0.5), which is equal to \sqrt{\pi}.

y = gamma(0.5)

%
% Evaluate several values of the gamma function between [-3.5 3.5].

x = -3.5:3.5;
y = gamma(x)

% Copyright 2012 The MathWorks, Inc.