FactorialI function

Fully qualified name: Std.Math.FactorialI

function FactorialI(n : Int) : Int

Summary

Returns the factorial of a given number.

Description

Returns the factorial of a given nonnegative integer n, where 0 ≤ n ≤ 20.

Input

n

The number to take the factorial of.

Output

The factorial of n.

Remarks

For inputs greater than 20, please use Microsoft.Quantum.Math.FactorialL.

See Also

  • Microsoft.Quantum.Math.FactorialL
  • Microsoft.Quantum.Math.ApproximateFactorial