From c3e6fb0e385bdd57ffd040f8e619375bce46318d Mon Sep 17 00:00:00 2001 From: apense Date: Mon, 29 Jun 2015 23:07:06 -0400 Subject: [PATCH] Corrected erroneous description Hypotenuse is really just the euclidean norm --- lib/pure/math.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pure/math.nim b/lib/pure/math.nim index e36e509be6..821ab738bc 100644 --- a/lib/pure/math.nim +++ b/lib/pure/math.nim @@ -206,7 +206,8 @@ when not defined(JS): proc cosh*(x: float): float {.importc: "cosh", header: "".} ## Computes the hyperbolic cosine of `x` proc hypot*(x, y: float): float {.importc: "hypot", header: "".} - ## Computes the distance between `x` and `y`. Equivalent to ``sqrt(x*x + y*y)``. + ## Computes the hypotenuse of a right-angle triangle with `x` and + ## `y` as its base and height. Equivalent to ``sqrt(x*x + y*y)``. proc sinh*(x: float): float {.importc: "sinh", header: "".} ## Computes the hyperbolic sine of `x`