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일

1 개 추천

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개)

카테고리

질문:

2011년 4월 22일

댓글:

2019년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by