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

Home » Public Forums » archive » IDL's BESELJ returns NAN for small argument and large order
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL's BESELJ returns NAN for small argument and large order [message #88070] Tue, 18 March 2014 07:55 Go to previous message
David Ruffner is currently offline  David Ruffner
Messages: 2
Registered: March 2014
Junior Member
Hi all,
I found what I think is a bug in IDL's BESELJ function when there is small argument and large order. For instance,

IDL> print,beselj(0.1d,103.d)
NaN
% Program caused arithmetic error: Floating underflow.

I think the problem is that the number is too small for IDL to handle because if I do a smaller order then the result is a very small number,

IDL> print,beselj(0.1d,102.d)
2.0511844e-295
% Program caused arithmetic error: Floating underflow.

Shouldn't IDL just return zero in this case? Any thoughts would be helpful.

Thanks,
David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to cleanup an object with a non-modal widget method
Next Topic: IDLnetURL to test for files

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

Current Time: Wed Oct 08 15:55:42 PDT 2025

Total time taken to generate the page: 0.00431 seconds