The Stirling numbers of the first kind are defined as the coefficients of powers of x in the polynomials:
Q(x)=(x-1)(x-2)...(x-n). For example,
This function calculate n>=2 case(n=0 and 1 are trivial case).
a = mStirling(4)
a = 1 -10 35 -50 24
the coefficients are listed in ascending order of x.
Steven Huang (2021). Stirling numbers of the first kind (https://www.mathworks.com/matlabcentral/fileexchange/8030-stirling-numbers-of-the-first-kind), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!