.TRANSFORM.Math.factorial

Calculates the factorial of integer n

Information

Returns the factorial of the input.


Example:

n = 3

y = 3! = 3*2*1 = 6

Interface

function factorial
  extends TRANSFORM.Icons.Function;
  input Integer n "Integer used to calculate factorial";
  output Real y "Factorial n";
end factorial;

Generated at 2025-04-01T18:24:36Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos