フィルターのクリア

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 Center および File ExchangeNumbers and Precision についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by