How do i execute expanding bracket problems?

2 ビュー (過去 30 日間)
Jonathan Dunne
Jonathan Dunne 2011 年 2 月 22 日
Hi
I was wondering if i am able to solve bracket manipulation problems such as:
(a+b)(a+b) = a^2+2ba+b^2
and with additional powers
(3^n+4^n)^2
Thanks Jonathan

回答 (1 件)

Andrew Newell
Andrew Newell 2011 年 2 月 22 日
If you have the Symbolic Toolbox, you can do this:
syms a b
expand((a+b)*(a+b))
syms n
expand((3^n+4^n)^2)

Community Treasure Hunt

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

Start Hunting!

Translated by