Dealing with very small or very large numbers
조회 수: 8 (최근 30일)
이전 댓글 표시
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
채택된 답변
James Tursa
2021년 4월 10일
I guess the obvious suggestion is to work in units of nanometers or maybe picometers instead of meters. Can you do that?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!