Negative binomial series

binomial,negative binomal,Newton's binomial,binomial theorem
1.5K Downloads
Updated 17 Nov 2008

View License

This m-file gives the expansion of powers of sums of any real or complex numbers x and y, and any negative integer n. In 1676 Newton showed that the binomial theorem also holds for negative integers n, which is the so-called negative binomial series and converges for |x| < y. From this emerges the negative binomial distribution, a discrete probability distribution.

Syntax: function negbins(x,y,n)

Input:
x,y - pair of interested terms to expand
n - coefficient/power to increase the binomial theorem (it is
a negative integer that file automatically gives)

Output:
- result of the negative binomial series sum
- vector of the negative binomial series (optional)

Cite As

Antonio Trujillo-Ortiz (2024). Negative binomial series (https://www.mathworks.com/matlabcentral/fileexchange/22086-negative-binomial-series), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on PHY Components 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
1.4.0.0

Text was improved.

1.1.0.0

It was added an appropriate format to cite this file.

1.0.0.0