Symplifying numerical expression in Symbolic Math
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi,
after calculating in MuPAD, I´ve got some huge numerical results with fractions and exponents in it. How can I symplify this result in order to get a decimalnumber with just a few digits?
Thanks, Chris
댓글 수: 0
채택된 답변
Paulo Silva
2011년 7월 10일
try this
double(LongExpression)
or
vpa(LongExpression)
where LongExpression is your expression.
댓글 수: 0
추가 답변 (1개)
Kai Gehrs
2011년 7월 11일
Hi Chris,
if you have the result inside of MuPAD and there are no symbolic variables remaining in the result, then you can just apply the 'float' command to your result to get a decimal number.
If you want to change the number of digits displayed, you can set the variable 'DIGITS' (all capital letters, that's important) to a value that seems appropriate to you and re-execute the 'float' command.
Hope this helps and best regards, -- Kai
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!