1998-02-01 09:37:08 +08:00
|
|
|
#include "f2c.h"
|
|
|
|
|
2002-06-01 20:38:32 +08:00
|
|
|
double
|
|
|
|
d_sign (doublereal * a, doublereal * b)
|
1998-02-01 09:37:08 +08:00
|
|
|
{
|
2002-06-01 20:38:32 +08:00
|
|
|
double x;
|
|
|
|
x = (*a >= 0 ? *a : -*a);
|
|
|
|
return (*b >= 0 ? x : -x);
|
1998-02-01 09:37:08 +08:00
|
|
|
}
|