Comparing very small numbers

1 次查看(过去 30 天)
Saptarshi Bhattacharjee
回答: Voss 2021-12-28
I have a code where I have to compare between very small numbers. I have a function where I input two values and it gives me the result, which I have to compare with 0. Generally the results are very small, and hence I am not getting accurate results. Any help in this plzz??
  1 个评论
Walter Roberson
Walter Roberson 2012-1-23
What are you seeing, and what would you consider to be "accurate results" for your situation? Also, how small is "very small" ?

请先登录,再进行评论。

回答(1 个)

Voss
Voss 2021-12-28
Look into using eps() for this.

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by