X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fmath%2Fhypot.c;h=060f3ce2ca86aefec3f0ab8f59985dee3ef613fe;hp=449242dfecc51803e94db4bc72d523c68210c9e1;hb=0a5395faab237ba9008352b0f4bee9659bbd3d5f;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec diff --git a/functions/math/hypot.c b/functions/math/hypot.c index 449242d..060f3ce 100644 --- a/functions/math/hypot.c +++ b/functions/math/hypot.c @@ -15,5 +15,12 @@ long double hypot( long double x, long double y ) { /* TODO */ }; // Standard C double hypot( double x, double y ) { /* TODO */ }; + +/* Therx code +{ + return sqrt( x * x + y * y ); +} +*/ + float hypotf( float x, float y ) { /* TODO */ }; long double hypotl( long double x, long double y ) { /* TODO */ };