How do I set MATLAB to read an input with more than 15 decimal places?

2 ビュー (過去 30 日間)
rockthekasbah
rockthekasbah 2015 年 11 月 1 日
回答済み: Walter Roberson 2015 年 11 月 2 日
I have an input argument that ranges from 4 to 17 decimal places. When I try to compute the argument, MATLAB works fine for upto 16 decimal places(I get my output almost immediately), but when I enter the argument with 17 decimal places, it goes on 'Busy' forever(15 minutes till I lost my patience). Could it be something wrong with my code or should I just wait longer?

採用された回答

Walter Roberson
Walter Roberson 2015 年 11 月 2 日
IEEE 754 Double Precision is limited to 53 bits precision, which comes out between 15 and 16 decimal places. You cannot use ordinary MATLAB Double Precision to compute 17 decimal places. You would need to use a high precision library of some kind.
The MATLAB Symbolic Toolbox can handle more than 16 digits.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by