diff options
Diffstat (limited to 'Python/hypot.c')
-rw-r--r-- | Python/hypot.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Python/hypot.c b/Python/hypot.c deleted file mode 100644 index 755d0c3..0000000 --- a/Python/hypot.c +++ /dev/null @@ -1,23 +0,0 @@ -/* hypot() replacement */ - -#include "pyconfig.h" -#include "pyport.h" - -double hypot(double x, double y) -{ - double yx; - - x = fabs(x); - y = fabs(y); - if (x < y) { - double temp = x; - x = y; - y = temp; - } - if (x == 0.) - return 0.; - else { - yx = y/x; - return x*sqrt(1.+yx*yx); - } -} |