Multifactorial function

Version (1.2 KB) by Matt
Computes the nth-multifactorial of an integer


Updated 26 Dec 2012

View License

The multifactorial function is a generalization of the factorial function

fact(x,1) = x! = x(x-1)(x-2)...(1)
fact(x,2) = x!! = x(x-2)(x-4)...(1)
fact(x,3) = x!!! = x(x-3)(x-6)...(1)

Cite As

Matt (2023). Multifactorial function (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Toolbox Distribution in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes