How many exact decimals can offer Matlab?
4 ビュー (過去 30 日間)
古いコメントを表示
Hi, everybody. I would like to know how many exact decimals can offer Matlab. I did a program to calculate Viete sums and run it and I can see only 4 exact decimals in the answers. Thats all matlab can offer or there is a setting where I can change precision? Thank you, Daniela
0 件のコメント
採用された回答
the cyclist
2012 年 4 月 2 日
If you type
>> format long
you will see about 15 digits of precision. By default, MATLAB does numerical calculations on double-precision floating point numbers, but uses the "short" display format. You can read a bit more with
>> doc format
There is a lot more that can be said, but maybe that's enough for you to know to start?
0 件のコメント
その他の回答 (1 件)
Jonathan Sullivan
2012 年 4 月 2 日
Change the display format.
Try:
format long
X % Your variable
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!