function fac = factorial(n)
% Computes n!
% A recursive function is used
if n==1
    fac = 1;
else
    fac = n*fakultaet(n-1);
end
