package math
import "src.elv.sh/pkg/mods/math"
Package math exposes functionality from Go's math package as an elvish module.
Index ¶
Variables ¶
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, "atan2": math.Atan2, "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.
Source Files ¶
math.go
- Version
- v0.21.0 (latest)
- Published
- Aug 13, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 days ago –
Tools for package owners.