how to factor a analytic expression ?

조회 수: 4 (최근 30일)
Rabih Sokhen
Rabih Sokhen 2022년 3월 9일
댓글: Rabih Sokhen 2022년 3월 9일
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

답변 (1개)

Torsten
Torsten 2022년 3월 9일
F = factor(A) ;
A = F(1)*F(2);
does not work ?
  댓글 수: 1
Rabih Sokhen
Rabih Sokhen 2022년 3월 9일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by