nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f873dea
)
lib: adds hypotenuse to math module as Float::hypot
author
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 11 Nov 2011 17:08:34 +0000
(12:08 -0500)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/lib/standard/math.nit
b/lib/standard/math.nit
index
54c8793
..
0e3d57e
100644
(file)
--- a/
lib/standard/math.nit
+++ b/
lib/standard/math.nit
@@
-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 ]