Effacer les filtres
Effacer les filtres

Comparing very small numbers

1 vue (au cours des 30 derniers jours)
Saptarshi Bhattacharjee
Saptarshi Bhattacharjee le 23 Jan 2012
Réponse apportée : Voss le 28 Déc 2021
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 commentaire
Walter Roberson
Walter Roberson le 23 Jan 2012
What are you seeing, and what would you consider to be "accurate results" for your situation? Also, how small is "very small" ?

Connectez-vous pour commenter.

Réponses (1)

Voss
Voss le 28 Déc 2021
Look into using eps() for this.

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by