Multinomial Expansion
版本 1.0.0.0 (1.5 KB) 作者:
Alabi Bojesomo
This code implement the expansion of multinomial equation i.e (x1 + x2 + ... + xl)^n where l>=1
when we want to find the expansion powers of the multinomial (x1 + x2 + ... + xl)^n where l>=1, as well as the coefficients.
the function gives the powers in order for possible outcomes.
e.g
(a+b+c)^3=a^3+b^3+c^3+3*a^2*b+3*a^2*c+3*b^2*a+3*b^2*c+3*c^2*a+3*c^2*b+6*a*b*c
using the function, we type
normSize=3;
normPower=3;
[powI coefI]=multiNomial(normPower,normSize);
引用格式
Alabi Bojesomo (2024). Multinomial Expansion (https://www.mathworks.com/matlabcentral/fileexchange/39842-multinomial-expansion), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2011a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions > Discrete Distributions > Multinomial Distribution >
在 Help Center 和 MATLAB Answers 中查找有关 Multinomial Distribution 的更多信息
标签
致谢
启发作品: Multinomial Expansion
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |