function x = expdecay(t, tau)
% return the exponential function x = e^{-t/tau}
  x = exp(-t./tau);
end