フィルターのクリア

Simplifying output involving symbolic variables

1 回表示 (過去 30 日間)
Aleem Andrew
Aleem Andrew 2021 年 1 月 7 日
コメント済み: Star Strider 2021 年 1 月 7 日
The eigenvalue and eigenvector expressions generated by the following code are expressions that are not fully simplified. Can someone please explain how they can be further simplified?
syms m k g l wp ws
mm = [m 0; 0 m];
kms = [ws^2+wp^2 -wp^2; -wp^2 wp^2]
[evec,eval] = eig(kms)

採用された回答

Star Strider
Star Strider 2021 年 1 月 7 日
Try this:
evec = simplify(evec, 'Steps',500)
eval = simplify(eval, 'Steps',500)
producing:
evec =
[((4*wp^4 + ws^4)^(1/2) - ws^2)/(2*wp^2), -((4*wp^4 + ws^4)^(1/2) + ws^2)/(2*wp^2)]
[ 1, 1]
eval =
[wp^2 - (4*wp^4 + ws^4)^(1/2)/2 + ws^2/2, 0]
[ 0, (4*wp^4 + ws^4)^(1/2)/2 + wp^2 + ws^2/2]
or:
.
  2 件のコメント
Aleem Andrew
Aleem Andrew 2021 年 1 月 7 日
Thank you for your help
Star Strider
Star Strider 2021 年 1 月 7 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFormula Manipulation and Simplification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by