フィルターのクリア

How to interpretate numbers below de MATLAB precision

2 ビュー (過去 30 日間)
Fidel Souza
Fidel Souza 2015 年 2 月 27 日
コメント済み: James Tursa 2015 年 2 月 27 日
How to interpretate numbers below 2.2204e-16?

採用された回答

John D'Errico
John D'Errico 2015 年 2 月 27 日
No problem.
A = 1e-250
A =
1e-250
MATLAB has no problem with small numbers. Well, there is such a thing as too small.
Perhaps your question REALLY is how to work in higher precision than a double. For that you need to use either the symbolic toolbox, of my own HPF toolbox. Either will suffice, although they will be slower than working with doubles.
  3 件のコメント
per isakson
per isakson 2015 年 2 月 27 日
編集済み: per isakson 2015 年 2 月 27 日
Search the File Exchange for the HPF Toolbox
James Tursa
James Tursa 2015 年 2 月 27 日
If you are seeing numbers below 1e-324 I would seriously examine what problem you are solving and how you are going about doing it. Numbers that small are often a red flag that something in your method is wrong.

サインインしてコメントする。

その他の回答 (1 件)

Roger Stafford
Roger Stafford 2015 年 2 月 27 日
編集済み: Roger Stafford 2015 年 2 月 27 日
You may have a misunderstanding of double precision floating point numbers, Fidel. The number 2.2204e-16 is the value of the least bit for a number that lies between 1 and 2, which is to say it is equal to 2^(-52). However, for smaller numbers, the least bit becomes correspondingly smaller. For example, if a number lies between, say, 1/32 and 1/16, the least bit will have a value of 2^(-57) = 6.9389e-18, representing a more precise value in absolute terms. The basic idea is that double precision (matlab's 'double') numbers have 53 bits to use for their significand (mantissa), so the ratio between the least bit value and the value of the number is always between 2^(-52) and 2^(-53), or roughly sixteen decimal places.
It is only when double numbers are smaller than 2^(-1022) where they become 'denormalized' that they begin to lose the sixteen decimal place precision, and these are exceedingly small numbers.
  1 件のコメント
Fidel Souza
Fidel Souza 2015 年 2 月 27 日
Thank you Roger. I undertood.

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by