How can I solve this: (x-2)*(x+1)^3?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
LUCA GIROTTI
le 10 Mar 2022
Modifié(e) : Sam Chak
le 10 Mar 2022
Hey there,
I am trying to process this "(x-2)*(x+1)^3" through matlab in way that I can have a result like this:
However every time I try to perform this operation, matlab keeps on telling me that x is set to nothing, how can I solve this?
Thanks in advance!
0 commentaires
Réponse acceptée
Ayaz Siddiqui
le 10 Mar 2022
Modifié(e) : Ayaz Siddiqui
le 10 Mar 2022
Try using expand.
syms x;
expand((x-2)*(x+1)^3)
Plus de réponses (1)
Sam Chak
le 10 Mar 2022
It's good to hear that you tried working out something by yourself. You need to create a symbolic variable for x.
syms x
For more info, please check:
2 commentaires
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!