- 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!