Factorial of large numbers

版本 1.0.0.0 (3.2 KB) 作者: Yvan Lengwiler
computes factorials of large arguments using standard algorithm
2.2K 次下载
更新时间 2007/5/10

查看许可证

This function implements a standard algorithm for computing factorials. It may not be the most efficient for very large arguments, but it is very transparent. The function accepts single numbers as inputs or arrays.

Note that for any real work, the code suggested by John D'Errico is actually preferable, because it is faster and more precise. This code is implemented in another file on FEX, logfactorial. I would therefore suggest that you use that function instead of largefactorial.

引用格式

Yvan Lengwiler (2024). Factorial of large numbers (https://www.mathworks.com/matlabcentral/fileexchange/14816-factorial-of-large-numbers), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Industrial Statistics 的更多信息
致谢

启发作品: Log of factorial of large numbers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Better documentation.
Small bug fix.
Slightly better speed.