POLYFITW user routine [message #1318] |
Wed, 08 September 1993 17:24 |
troy
Messages: 2 Registered: September 1993
|
Junior Member |
|
|
I have been having a problem with the routine POLYFITW. For certain
combinations of data sets and polynomial degree, the routine generates
an arithmetic error. I have traced this to a problem with the variable
YBAND. In particular, YBAND is a vector with some negative elements.
When the routine tries to take the square root, the error results.
As I understand it, the variable YBAND is a variance, and should never be
negative. Has anyone else come across this problem? Is it a bug in the code,
a problem with the algorithm, or maybe a bug in IDL's matrix handling routines?
Any help or insight would be much appreciated.
Troy
|
|
|