Returns the factorial of the input.
Example:
n = 3
y = 3! = 3*2*1 = 6
function factorial extends TRANSFORM.Icons.Function; input Integer n "Integer used to calculate factorial"; output Real y "Factorial n"; end factorial;