From 436f57065197bee86c9539b75de3a73e5bda3f10 Mon Sep 17 00:00:00 2001 From: narimiran Date: Mon, 24 Jun 2019 12:52:54 +0200 Subject: [documentation] fix #4630, document unsupported functions for JS --- lib/pure/math.nim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/pure/math.nim b/lib/pure/math.nim index 119087107..248653a76 100644 --- a/lib/pure/math.nim +++ b/lib/pure/math.nim @@ -581,13 +581,19 @@ when not defined(JS): # C proc erf*(x: float32): float32 {.importc: "erff", header: "".} proc erf*(x: float64): float64 {.importc: "erf", header: "".} ## Computes the `error function `_ for ``x``. + ## + ## Note: Not available for JS backend. proc erfc*(x: float32): float32 {.importc: "erfcf", header: "".} proc erfc*(x: float64): float64 {.importc: "erfc", header: "".} ## Computes the `complementary error function `_ for ``x``. + ## + ## Note: Not available for JS backend. proc gamma*(x: float32): float32 {.importc: "tgammaf", header: "".} proc gamma*(x: float64): float64 {.importc: "tgamma", header: "".} ## Computes the the `gamma function `_ for ``x``. ## + ## Note: Not available for JS backend. + ## ## See also: ## * `lgamma proc <#lgamma,float64>`_ for a natural log of gamma function ## @@ -605,6 +611,8 @@ when not defined(JS): # C proc lgamma*(x: float64): float64 {.importc: "lgamma", header: "".} ## Computes the natural log of the gamma function for ``x``. ## + ## Note: Not available for JS backend. + ## ## See also: ## * `gamma proc <#gamma,float64>`_ for gamma function ## -- cgit 1.4.1-2-gfad0