Binomal theorem
This m-file gives the expansion of powers of sums of any real or complex numbers x and y, and any nonnegative integer n. It is also known as the Newton's binomial. From it emerges the discrete binomial (positive) distribution.
Syntax: function bintheor(x,y,n)
Input:
x,y - pair of interested terms to expand
n - coefficient/power to increase the binomial theorem
Output:
- result of the Binomial theorem sum (default)
- vector of the binomial theorem values (optional)
Cite As
Antonio Trujillo-Ortiz (2024). Binomal theorem (https://www.mathworks.com/matlabcentral/fileexchange/22085-binomal-theorem), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.