comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Calculating the Exponential using IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Calculating the Exponential using IDL [message #70175] Tue, 23 March 2010 15:38
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Mar 23, 7:11 pm, IDL beginner <moxam...@gmail.com> wrote:
> In IDL EXP(-700) = 0, while in MATLAB the answer is EXP(-700) =
> 9.8597e-305. I need IDL to give me the same answer as MATLAB but I do
> not know what to do.

Stop giving exp() an integer:

IDL> print,exp(-7d2)
9.8596765e-305

Though you are close to the double precision limit for underflow. I
found it to be between -745d0 and -746d0.
[Message index]
 
Read Message
Previous Topic: Calculating the Exponential using IDL
Next Topic: Re: adding subset image into larger one

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Oct 14 12:55:53 PDT 2025

Total time taken to generate the page: 1.35902 seconds