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 #61834] Fri, 08 August 2008 09:52 Go to previous message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On Aug 8, 12:07 pm, maffie <matthias.demuz...@geo.kuleuven.be> wrote:
> Hi,
>
> Thank you!
> I the meanwhile I found this link, with the exact same question (and
> answer):http://www.dfanning.com/math_tips/underflow.html
>
> Is there also a possibility to add double precision (with this "d") to
> an array? And it seems that I have many more problems with my
> calculations, because I get some more messages about underflow and
> overflow.
>
> Thereby 2 more questions:
> - Would there be a solution to solve all these in ones? Like adding a
> statement somewhere to work in double precision in any of the
> calculations?
> - Is there an easy way to see where exactly (in a sequence of
> calculations) where it all goes wrong?
>
> Thank you!
> Matthias

To convert an array to double you can do
IDL> dbl = arr*1.0d
or slighly faster
IDL> dbl = DOUBLE(arr)

To find out where the problems are happening, you can use ON_ERROR or !
EXCEPT and CHECK_MATH

-k.
[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: Sat Oct 11 12:46:39 PDT 2025

Total time taken to generate the page: 0.16157 seconds