필터 지우기
필터 지우기

sym(1/3) bug?

조회 수: 1 (최근 30일)
Andrew Dabrowski
Andrew Dabrowski 2021년 2월 13일
댓글: Adam Danz 2021년 2월 13일
But when I try running this I get
Is this a bug or am I doing something wrong?

채택된 답변

Adam Danz
Adam Danz 2021년 2월 13일
편집: Adam Danz 2021년 2월 13일
Check your symbolic preferences.
sympref
ans = struct with fields:
FourierParameters: [1×2 sym] HeavisideAtOrigin: [1×1 sym] AbbreviateOutput: 1 TypesetOutput: 1 FloatingPointOutput: 0 PolynomialDisplayStyle: 'default' MatrixWithSquareBrackets: 0
If the FloatingPointOutput if true change it to false
sympref('FloatingPointOutput',true);
sym(1/3)
ans = 
0.3333
sympref('FloatingPointOutput',false);
sym(1/3)
ans = 
  댓글 수: 1
Adam Danz
Adam Danz 2021년 2월 13일
Andrew Dabrowski's answer moved here as comment
Ah thanks, that was it!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by