function [ y ] = simpleFactorial( x )
%simpleFactorial compute x factorial

  if x < 0
      error('factorials of positive numbers only')
  end
  
  y=1;
  for k=1:x
      y = y*k;
  end
  
end
