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

Home » Public Forums » archive » Re: IDL is not accurate enough!
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: IDL is not accurate enough! [message #62177] Thu, 28 August 2008 13:50 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.232081d2b8625528989730@news.giganews.com>,
David Fanning <news@dfanning.com> wrote:

> noahh.schwartz@gmail.com writes:
>
>> I've been having problems with IDL accuracy. I'm trying to perform
>> calculations using the gamma function. The problem is that it grows
>> VERY fast! Performing this calculation in double (namely gamma(x)/
>> gamma(y) with x and y big) yields the result: NaN...
>> Would it be possible to use a program like 'Mathematica' (or any
>> other) and to plug it in my ILD program? Some kind of CALL_EXTERNAL
>> that is to say. If it is possible, how can I do it and what is the
>> best program to use?
>
> It seems *highly* unlikely to me that IDL's implementation
> of DOUBLE is any less accurate than any other program's
> implementation. In fact, this probably has something to
> do with the *computer* and not with the program. :-)

Mathematica can do arbitrary-precision arithmetic ... with hundreds of digits,
if necessary. Don't expect it to be fast, though, as it is all done
in software, not with the hardware floating-point unit with which we
normally do single- and double-precision arithmetic.

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Some questions about "axis"
Next Topic: Re: Segmentation in ENVI

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

Current Time: Sat Oct 11 19:12:49 PDT 2025

Total time taken to generate the page: 1.35894 seconds