Effacer les filtres
Effacer les filtres

how to factor a analytic expression ?

1 vue (au cours des 30 derniers jours)
Rabih Sokhen
Rabih Sokhen le 9 Mar 2022
Commenté : Rabih Sokhen le 9 Mar 2022
clear all
clc
syms x
A=x.^2+x
i would like to factor A in a way that's A =x(x+1)
thank you

Réponses (1)

Torsten
Torsten le 9 Mar 2022
F = factor(A) ;
A = F(1)*F(2);
does not work ?
  1 commentaire
Rabih Sokhen
Rabih Sokhen le 9 Mar 2022
it work but for very big equation of 50 terms it will becom hard to reshape it
for example if A= a^2+2x+y +x.^2-z --> i would like to factoris A to A= a^2+x(2+x)+y-z

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by