Staging
v0.8.1
v0.8.1
Revision df66df0a286c5d09022e7efe839759797318506c authored by Andrew M. Kuchling on 22 March 2001, 03:03:41 UTC, committed by Andrew M. Kuchling on 22 March 2001, 03:03:41 UTC
1 parent bc32024
hypot.c
/* hypot() replacement */
#include "config.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);
}
}
Computing file changes ...