X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fhypot.c;h=b4412aa3bfccd11845278ff5f599113549565bea;hb=b589d7c67f9130207ab72d8b7c687b94d5bcc352;hp=449242dfecc51803e94db4bc72d523c68210c9e1;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old 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 */ };