How to simplify

12 Ansichten (letzte 30 Tage)
Bhagat
Bhagat am 22 Apr. 2011
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 ?

Akzeptierte Antwort

Oleg Komarov
Oleg Komarov am 22 Apr. 2011
If a is sym:
double(a)
  1 Kommentar
Kritika Vashishtha
Kritika Vashishtha am 30 Mai 2019
or you can just use the func simplify
simplify(a).

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by