X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fhypot.c;h=b4412aa3bfccd11845278ff5f599113549565bea;hb=e081ed1387e0c27dc689c8e32fdda06039544107;hp=449242dfecc51803e94db4bc72d523c68210c9e1;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib diff --git a/functions/math/hypot.c b/functions/math/hypot.c index 449242d..b4412aa 100644 --- a/functions/math/hypot.c +++ b/functions/math/hypot.c @@ -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 */ };