how to factor a analytic expression ?

1 回表示 (過去 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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by