]> pd.if.org Git - pdclib/blobdiff - functions/math/hypot.c
Introducing personalities. Removing C++ function decs / defs.
[pdclib] / functions / math / hypot.c
index 449242dfecc51803e94db4bc72d523c68210c9e1..b4412aa3bfccd11845278ff5f599113549565bea 100644 (file)
@@ -5,15 +5,13 @@
 // This code is Public Domain. Use, modify, and redistribute at will.
 // ----------------------------------------------------------------------------
 
-// ----------------------------------------------------------------------------
-// C++
+double hypot( double x, double y ) { /* TODO */ };
 
-float hypot( float x, float y ) { /* TODO */ };
-long double hypot( long double x, long double y ) { /* TODO */ };
+/* Therx code
+{
+    return sqrt( x * x + y * y );
+}
+*/
 
-// ----------------------------------------------------------------------------
-// Standard C
-
-double hypot( double x, double y ) { /* TODO */ };
 float hypotf( float x, float y ) { /* TODO */ };
 long double hypotl( long double x, long double y ) { /* TODO */ };