Floating illegal operand [message #32407] |
Thu, 03 October 2002 10:09 |
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
|
|
|