realmax + 1 infinity?
Ältere Kommentare anzeigen
Hello!
How come is realmax + 1 not inifity when typed into command window?
Thank you.
Akzeptierte Antwort
Weitere Antworten (1)
Steven Lord
am 11 Apr. 2019
1 Stimme
If you handed Bill Gates or Scrooge McDuck a $1 bill, it doesn't change what he'll report for his net worth. A single dollar is negligible compared to how much money he has already.
Similarly, if you add 1 to realmax it doesn't change the value since 1 is negligible compared to realmax. If you want to know how much you'd need to add to realmax to make it not negligible, take a look at the eps function.
Kategorien
Mehr zu Numeric Types finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!