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