How to simplify

12 ビュー (過去 30 日間)
Bhagat
Bhagat 2011 年 4 月 22 日
コメント済み: Kritika Vashishtha 2019 年 5 月 30 日
I get the following expression for a variable 'a' :
2-7/6+1/6*97^(1/2)+1/6*(-646-86*97^(1/2))^(1/2) -7/6+1/6*97^(1/2)-1/6*(-646-86*97^(1/2))^(1/2) -7/6-1/6*97^(1/2)+1/6*(-646+86*97^(1/2))^(1/2) -7/6-1/6*97^(1/2)-1/6*(-646+86*97^(1/2))^(1/2)
What is the command to simplify it to get a single value in the command window ?

採用された回答

Oleg Komarov
Oleg Komarov 2011 年 4 月 22 日
If a is sym:
double(a)
  1 件のコメント
Kritika Vashishtha
Kritika Vashishtha 2019 年 5 月 30 日
or you can just use the func simplify
simplify(a).

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by