how to factor a analytic expression ?

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

Respuestas (1)

Torsten
Torsten el 9 de Mzo. de 2022

0 votos

F = factor(A) ;
A = F(1)*F(2);
does not work ?

1 comentario

Rabih Sokhen
Rabih Sokhen el 9 de Mzo. de 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

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 9 de Mzo. de 2022

Comentada:

el 9 de Mzo. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by