diff --git a/lib/pure/math.nim b/lib/pure/math.nim index 1190871073..248653a761 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 ##