Function that returns the factorial n! for 0 ≤ n ≤ 12.
function factorial extends Modelica.Icons.Function; input Integer n(min = 0, max = 12) "Integer number"; output Integer f "Factorial of n"; end factorial;