lib: adds hypotenuse to math module as Float::hypot
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 11 Nov 2011 17:08:34 +0000 (12:08 -0500)
committerJean Privat <jean@pryen.org>
Mon, 13 Feb 2012 19:04:52 +0000 (14:04 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/standard/math.nit

index 54c8793..0e3d57e 100644 (file)
@@ -34,6 +34,7 @@ redef class Float
        fun exp: Float is extern "kernel_Float_Float_exp_0"
        
        fun rand: Float is extern "kernel_Float_Float_rand_0"
+       fun hypot_with( b : Float ) : Float is extern "hypotf"
 end
 
 redef class Collection[ E ]