此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
备注
访问此页面需要授权。 可以尝试登录或更改目录。
访问此页面需要授权。 可以尝试更改目录。
完全限定的名称:Std.Math.ApproximateFactorial
function ApproximateFactorial(n : Int) : Double
返回给定数字的近似因子。
根据输入 Double返回 n的阶乘。 此函数的输入域 n <= 169。
Double
n
n <= 169
对于 n > 10,此函数使用 Ramanujan 近似值,其相对误差为 1 / n⁵。
要采用近似乘数的数字。 不得为负数。
n的近似阶乘。
此页面是否有帮助?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?