Special Functions math library

Collection of Special Functions programs.
Updated 26 Aug 2004

No License

A collection of special function programs valid in the entire complex plane. Includes Gamma, loggamma, psi, polygamma, error, zeta, and others.

Editor's Note: Please note that these files have the same names as files already included with MATLAB. Being aware of where they are on your path will help you determine when you're using these files and not the MathWorks versions.

Programs to calculate the complex Gamma, complex LogGamma, complex error, complex psi, complex Riemann zeta, vectorized factorial, vectorized double factorial functions as well as Bernoulli, Euler, Genocchi, and totient numbers.

Cite As

Paul Godfrey (2024). Special Functions math library (https://www.mathworks.com/matlabcentral/fileexchange/978-special-functions-math-library), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Gamma Functions in Help Center and MATLAB Answers

Inspired: Generation of Random Variates

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Update to my earlier submissions. Adds an arbitrary order complex polygamma function, pochhammer, harmonic sum. Includes complex gamma, loggamma, bernoulli, euler numbers, Riemann zeta, factorial, binomial, and other functions.