フィルターのクリア

Overflow of fractional representations of floating point numbers?

2 ビュー (過去 30 日間)
Lucas Medina
Lucas Medina 2015 年 7 月 22 日
回答済み: Walter Roberson 2015 年 7 月 23 日
So if I have a matrix of floating point numbers A, I know that I can make it symbolic:
A = sym(A, 'f');
Now, each of the entries is represented by a fraction.
I am concerned with possible overflow. As I perform more and more operations on these entries, the numerator and denominator of each entry becomes larger and larger. So what I am wondering is, what is the range of the numerator and the denominator?
How can I prevent overflow? If a numerator or denominator exceeds its range, how can I retain the preciseness of the fraction?
Thanks

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 7 月 23 日
You are limited to 2^29 + 1 decimal digits it appears to me. You might encounter practical limitations a lot sooner than that, though.

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by