How to simplify

13 次查看(过去 30 天)
Bhagat
Bhagat 2011-4-22
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 CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by