Binomial Expansion

Expands Binomials of form (x+y)^n
193 Downloads
Updated 17 May 2018

View License

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 (2025). Binomial Expansion (https://se.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 Linux
Categories
Find more on Just for fun in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0