RE: Math problem
From: "Serge Guzy"
Subject:RE: [NMusers] Math problem
Date:Thu, 15 May 2003 14:17:11 -0700
You should write the following before asin(x) computation is performed
IF(X.LT.-1)THEN
X=-1
ENDIF
IF(X.GT.1)THEN
X=1
ENDIF
It is possible that rounding errors cause X to be a little bit outside the possible range
for X [-1,1].
If you do not have access to the code that computes asin, then I do not have any option
to suggest.
Serge Guzy
President POP-PHARM