- The true value option displays symbolic results in the short fixed-decimal format with 4 digits after the decimal point.
How to keep more digits when use symbolic expressions
4 ビュー (過去 30 日間)
古いコメントを表示
my codes is simple,
syms x
f(x)=0.123456789*x
f(1)
sympref('FloatingPointOutput', true);
f(x)=0.123456789*x
f(1)
When use sympref, it will only keep four digits, (I want to show 0.123456789). Is there any way to keep them all.
0 件のコメント
採用された回答
Star Strider
2022 年 2 月 21 日
From the documentation on 'FloatingPointOutput' —
syms x
f(x)=0.123456789*x
f(x)=0.123456789*x
F = vpa(f,64) % Specify 64 Digits In The 'vpa' Output
.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Mathematical Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!