Dealing with very small or very large numbers
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Anthony Gurunian
le 10 Avr 2021
Commenté : Anthony Gurunian
le 10 Avr 2021
I have a physical problem with length scales on the order of nanometers. After some calculations, I have to calculate things like exp(-1e15) which is 0 according to MATLAB, but in reality it is nonzero. For context exp(-700) is already 9.8e-305 which is close to the smallest number in MATLAB 2.2251e-308. Is there a known workaround for things like his?
0 commentaires
Réponse acceptée
James Tursa
le 10 Avr 2021
I guess the obvious suggestion is to work in units of nanometers or maybe picometers instead of meters. Can you do that?
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!