Can I solve symbolic mathematical operations with matlab?

2 views (last 30 days)
For instance:
(a+b)^2
a^2 + 2*a*b + b^2
(a+b+c)^2
a^2 + b^2 + c^2 + 2*a*b + 2*b*c + 2*a*c

Accepted Answer

Walter Roberson
Walter Roberson on 2 Apr 2016
syms a b
expand( (a+b)^2 )

More Answers (2)

Karan Suresh
Karan Suresh on 11 Jul 2019
Expand the polynomial

Shivam Nishad
Shivam Nishad on 17 May 2021
can you please solve these with the help of matlab.

Community Treasure Hunt

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

Start Hunting!