共用方式為


FactorialI 函式

完整名稱:Std.Math.FactorialI

function FactorialI(n : Int) : Int

總結

傳回指定數位的乘積。

描述

傳回指定非負整數 n 的因數,其中 0 ≤ n ≤ 20。

輸入

n

要採用因數的數位。

輸出

n的因數。

言論

針對大於 20 的輸入,請使用 Microsoft.Quantum.Math.FactorialL

另請參閱

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