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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by