Confluent hypergeometric function

Solves Kummer's differential equation.
2.2K Downloads
Updated 13 Jun 2011

View License

This function estimates the solution to Kummer's differential equation within a specified tolerance. Kummer's differential equation is given by:

x*g''(x) + (b - x)*g'(x) - a*g(x) = 0

The code executes a while loop to calculate the generalized hypergeometric series within a specified tolerance.

Supports inputs of x in the form of a scalar, row vector, or column vector.

Cite As

Patrick Mousaw (2025). Confluent hypergeometric function (https://www.mathworks.com/matlabcentral/fileexchange/29766-confluent-hypergeometric-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Special Functions in Help Center and MATLAB Answers
Acknowledgements

Inspired: SphericalDistributionsRand

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

Changed the code to calculate the solution using a while loop to a specified tolerance. The while loop is is both faster and more accurate than the vector multiplication method I was using before.

1.1.0.0

Modified code to be able to handle column vector inputs for x.

1.0.0.0