Stirling numbers of the first kind

Version (923 Bytes) by Steven Huang
This c-mex function obtains the Stirling numbers of the first kind.


Updated 15 Jul 2005

No License

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,

Q1(x)=x-1; %

This function calculate n>=2 case(n=0 and 1 are trivial case).

To use:
a = mStirling(4)
a = 1 -10 35 -50 24

the coefficients are listed in ascending order of x.

Cite As

Steven Huang (2023). Stirling numbers of the first kind (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes