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