mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 23:41:29 +00:00
Corrected erroneous description
Hypotenuse is really just the euclidean norm
This commit is contained in:
@@ -206,7 +206,8 @@ when not defined(JS):
|
||||
proc cosh*(x: float): float {.importc: "cosh", header: "<math.h>".}
|
||||
## Computes the hyperbolic cosine of `x`
|
||||
proc hypot*(x, y: float): float {.importc: "hypot", header: "<math.h>".}
|
||||
## 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: "<math.h>".}
|
||||
## Computes the hyperbolic sine of `x`
|
||||
|
||||
Reference in New Issue
Block a user