Expands Binomials of form (x+y)^n for a given y and n, where n is a whole number and y can be any real or complex number. This program uses Pascals Triangle to determine the coefficients of (x+1)^n, creates a vector to represent (y^0 y^1 y^2 y^3 ... y^n-1 y^n), and multiplies the two term by term to obtain the coefficients of (x+y)^n. Then using poly2sym we obtain a symbolic representation of the expanded polynomial.
Cite As
Mario Rivero (2026). Binomial Expansion (https://uk.mathworks.com/matlabcentral/fileexchange/67366-binomial-expansion), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
