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

Home » Public Forums » archive » Re: exp() infinity
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: exp() infinity [message #61836 is a reply to message #61834] Fri, 08 August 2008 09:06 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
maffie wrote:
> Hi all,
>
> I have a small question concerning the exponential function exp():
> For values above around 89, IDL returns exp(89) = Infinity.
>
> Is there any way to get the mathematical solution??
> e.g. exp(89) = 4.4896128e38
>
> Thank you!
> Matthias

the help file says:
"The expression to be evaluated. If Expression is double-precision
floating or complex, the result is of the same type. All other types are
converted to single-precision floating-point and yield floating-point
results."

so try
IDL> print,exp(89.0D)
4.4896128e+038

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting a pie chart
Next Topic: Re: Plotting a pie chart

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

Current Time: Sun Oct 12 03:07:01 PDT 2025

Total time taken to generate the page: 2.72073 seconds