Staging
v0.5.1
https://github.com/python/cpython
Revision 5cb48a4c986bffcc773ada754ee9757db2a76e58 authored by Fred Drake on 22 December 1998, 18:46:13 UTC, committed by Fred Drake on 22 December 1998, 18:46:13 UTC
namespaces with 1.5.2.

Added an index entry.

Fixed XML expansion:  XML is the "Extensible Markup Language", not the
"eXtended Markup Language".
1 parent 66419ba
Raw File
Tip revision: 5cb48a4c986bffcc773ada754ee9757db2a76e58 authored by Fred Drake on 22 December 1998, 18:46:13 UTC
Added a \versionchanged since the API changed to support
Tip revision: 5cb48a4
hypot.c
/* hypot() replacement */

#include "config.h"
#include "myproto.h"
#include "mymath.h"

double hypot(x, y)
	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);
	}
}
back to top