Factorial of large numbers

computes factorials of large arguments using standard algorithm
2,2K Downloads
Aktualisiert 10. Mai 2007

Lizenz anzeigen

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.

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R14SP3
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Quellenangaben

Inspiriert: 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!
Version Veröffentlicht Versionshinweise
1.0.0.0

Better documentation.
Small bug fix.
Slightly better speed.