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

Home » Public Forums » archive » Floating illegal operand
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Floating illegal operand [message #32407] Thu, 03 October 2002 10:09
Ed Wright is currently offline  Ed Wright
Messages: 39
Registered: February 1999
Member
Time to discuss my favorite IDL subject, Floating illegal operand...

Yesterday, I received an inquiry from a user of a DLM I wrote questioning me
about the following:

IDL> cspice_pxform, 'GNS_GIM_CEM1', 'J2000', 74276223.927918d0, rotmat
% Program caused arithmetic error: Floating illegal operand

The procedure calculates a series of rotation matrices between two arbitrary
frames (in this case the Genesis vehicle and the J2000 inertial frame) at a
stated time.

The output matrix, rotmat, was correct. Nothing wrong there. I wrote a small
C program, linked against the same library as the DLM, to reproduce the
error. The program ran, produced the same numerical results to round off,
but signaled no FPE error. Similar behavior for a FORTRAN version.

Question: the signal originates in the C library against which I link the
DLM. How does the IDL environment capture this type of signal? Should the C
program show no signal?

As always,
Ed Wright
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Array comparison part 2
Next Topic: error estimates (a little off-topic maybe)

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

Current Time: Wed Oct 08 14:53:09 PDT 2025

Total time taken to generate the page: 0.00353 seconds