Documentation
¶
Overview ¶
Package math exposes functionality from Go's math package as an elvish module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ns = eval.BuildNsNamed("math"). AddVars(map[string]vars.Var{ "e": vars.NewReadOnly(math.E), "pi": vars.NewReadOnly(math.Pi), }). AddGoFns(map[string]any{ "abs": abs, "acos": math.Acos, "acosh": math.Acosh, "asin": math.Asin, "asinh": math.Asinh, "atan": math.Atan, "atanh": math.Atanh, "ceil": ceil, "cos": math.Cos, "cosh": math.Cosh, "floor": floor, "is-inf": isInf, "is-nan": isNaN, "log": math.Log, "log10": math.Log10, "log2": math.Log2, "max": max, "min": min, "pow": pow, "round": round, "round-to-even": roundToEven, "sin": math.Sin, "sinh": math.Sinh, "sqrt": math.Sqrt, "tan": math.Tan, "tanh": math.Tanh, "trunc": trunc, }).Ns()
Ns is the namespace for the math: module.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.