% Function to evaluate the second moment of the negative exponential
% BETA is a global variable containing the mean (parameter) of the distribution

function f = negexps(t);
global BETA

f = (t.^2/BETA) .* exp(-t/BETA);
