xgo/docs/stdlib-math.md

4 KiB

Module - "math"

math := import("math")

Variables

  • e: equivalent of Go's math.E
  • pi: equivalent of Go's math.Pi
  • phi: equivalent of Go's math.Phi
  • sqrt2: equivalent of Go's math.Sqrt2
  • sqrtE: equivalent of Go's math.SqrtE
  • sprtPi: equivalent of Go's math.SqrtPi
  • sqrtPhi: equivalent of Go's math.SqrtPhi
  • ln2: equivalent of Go's math.Ln2
  • log2E: equivalent of Go's math.Log2E
  • ln10: equivalent of Go's math.Ln10
  • ln10E: equivalent of Go's math.Log10E

Functions

  • abs(float) => float: port of Go's math.Abs function
  • acos(float) => float: port of Go's math.Acos function
  • acosh(float) => float: port of Go's math.Acosh function
  • asin(float) => float: port of Go's math.Asin function
  • asinh(float) => float: port of Go's math.Asinh function
  • atan(float) => float: port of Go's math.Atan function
  • atan2(float, float) => float: port of Go's math.Atan2 function
  • atanh(float) => float: port of Go's math.Atanh function
  • cbrt(float) => float: port of Go's math.Cbrt function
  • ceil(float) => float: port of Go's math.Ceil function
  • copysign(float, float) => float: port of Go's math.Copysign function
  • cos(float) => float: port of Go's math.Cos function
  • cosh(float) => float: port of Go's math.Cosh function
  • dim(float, float) => float: port of Go's math.Dim function
  • erf(float) => float: port of Go's math.Erf function
  • erfc(float) => float: port of Go's math.Erfc function
  • erfcinv(float) => float: port of Go's math.Erfcinv function
  • erfinv(float) => float: port of Go's math.Erfinv function
  • exp(float) => float: port of Go's math.Exp function
  • exp2(float) => float: port of Go's math.Exp2 function
  • expm1(float) => float: port of Go's math.Expm1 function
  • floor(float) => float: port of Go's math.Floor function
  • gamma(float) => float: port of Go's math.Gamma function
  • hypot(float, float) => float: port of Go's math.Hypot function
  • ilogb(float) => float: port of Go's math.Ilogb function
  • inf(int) => float: port of Go's math.Inf function
  • is_inf(float, int) => float: port of Go's math.IsInf function
  • is_nan(float) => float: port of Go's math.IsNaN function
  • j0(float) => float: port of Go's math.J0 function
  • j1(float) => float: port of Go's math.J1 function
  • jn(int, float) => float: port of Go's math.Jn function
  • ldexp(float, int) => float: port of Go's math.Ldexp function
  • log(float) => float: port of Go's math.Log function
  • log10(float) => float: port of Go's math.Log10 function
  • log1p(float) => float: port of Go's math.Log1p function
  • log2(float) => float: port of Go's math.Log2 function
  • logb(float) => float: port of Go's math.Logb function
  • max(float, float) => float: port of Go's math.Max function
  • min(float, float) => float: port of Go's math.Min function
  • mod(float, float) => float: port of Go's math.Mod function
  • nan() => float: port of Go's math.NaN function
  • nextafter(float, float) => float: port of Go's math.Nextafter function
  • pow(float, float) => float: port of Go's math.Pow function
  • pow10(int) => float: port of Go's math.Pow10 function
  • remainder(float, float) => float: port of Go's math.Remainder function
  • round(float) => float: port of Go's math.Round function
  • round_to_even(float) => float: port of Go's math.RoundToEven function
  • signbit(float) => float: port of Go's math.Signbit function
  • sin(float) => float: port of Go's math.Sin function
  • sinh(float) => float: port of Go's math.Sinh function
  • sqrt(float) => float: port of Go's math.Sqrt function
  • tan(float) => float: port of Go's math.Tan function
  • tanh(float) => float: port of Go's math.Tanh function
  • runct(float) => float: port of Go's math.Trunc function
  • y0(float) => float: port of Go's math.Y0 function
  • y1(float) => float: port of Go's math.Y1 function
  • yn(int, float) => float: port of Go's math.Yn function