github.com/mattn/anko@v0.1.10/packages/math.go (about)

     1  package packages
     2  
     3  import (
     4  	"math"
     5  	"reflect"
     6  
     7  	"github.com/mattn/anko/env"
     8  )
     9  
    10  func init() {
    11  	env.Packages["math"] = map[string]reflect.Value{
    12  		"Abs":             reflect.ValueOf(math.Abs),
    13  		"Acos":            reflect.ValueOf(math.Acos),
    14  		"Acosh":           reflect.ValueOf(math.Acosh),
    15  		"Asin":            reflect.ValueOf(math.Asin),
    16  		"Asinh":           reflect.ValueOf(math.Asinh),
    17  		"Atan":            reflect.ValueOf(math.Atan),
    18  		"Atan2":           reflect.ValueOf(math.Atan2),
    19  		"Atanh":           reflect.ValueOf(math.Atanh),
    20  		"Cbrt":            reflect.ValueOf(math.Cbrt),
    21  		"Ceil":            reflect.ValueOf(math.Ceil),
    22  		"Copysign":        reflect.ValueOf(math.Copysign),
    23  		"Cos":             reflect.ValueOf(math.Cos),
    24  		"Cosh":            reflect.ValueOf(math.Cosh),
    25  		"Dim":             reflect.ValueOf(math.Dim),
    26  		"Erf":             reflect.ValueOf(math.Erf),
    27  		"Erfc":            reflect.ValueOf(math.Erfc),
    28  		"Exp":             reflect.ValueOf(math.Exp),
    29  		"Exp2":            reflect.ValueOf(math.Exp2),
    30  		"Expm1":           reflect.ValueOf(math.Expm1),
    31  		"Float32bits":     reflect.ValueOf(math.Float32bits),
    32  		"Float32frombits": reflect.ValueOf(math.Float32frombits),
    33  		"Float64bits":     reflect.ValueOf(math.Float64bits),
    34  		"Float64frombits": reflect.ValueOf(math.Float64frombits),
    35  		"Floor":           reflect.ValueOf(math.Floor),
    36  		"Frexp":           reflect.ValueOf(math.Frexp),
    37  		"Gamma":           reflect.ValueOf(math.Gamma),
    38  		"Hypot":           reflect.ValueOf(math.Hypot),
    39  		"Ilogb":           reflect.ValueOf(math.Ilogb),
    40  		"Inf":             reflect.ValueOf(math.Inf),
    41  		"IsInf":           reflect.ValueOf(math.IsInf),
    42  		"IsNaN":           reflect.ValueOf(math.IsNaN),
    43  		"J0":              reflect.ValueOf(math.J0),
    44  		"J1":              reflect.ValueOf(math.J1),
    45  		"Jn":              reflect.ValueOf(math.Jn),
    46  		"Ldexp":           reflect.ValueOf(math.Ldexp),
    47  		"Lgamma":          reflect.ValueOf(math.Lgamma),
    48  		"Log":             reflect.ValueOf(math.Log),
    49  		"Log10":           reflect.ValueOf(math.Log10),
    50  		"Log1p":           reflect.ValueOf(math.Log1p),
    51  		"Log2":            reflect.ValueOf(math.Log2),
    52  		"Logb":            reflect.ValueOf(math.Logb),
    53  		"Max":             reflect.ValueOf(math.Max),
    54  		"Min":             reflect.ValueOf(math.Min),
    55  		"Mod":             reflect.ValueOf(math.Mod),
    56  		"Modf":            reflect.ValueOf(math.Modf),
    57  		"NaN":             reflect.ValueOf(math.NaN),
    58  		"Nextafter":       reflect.ValueOf(math.Nextafter),
    59  		"Pow":             reflect.ValueOf(math.Pow),
    60  		"Pow10":           reflect.ValueOf(math.Pow10),
    61  		"Remainder":       reflect.ValueOf(math.Remainder),
    62  		"Signbit":         reflect.ValueOf(math.Signbit),
    63  		"Sin":             reflect.ValueOf(math.Sin),
    64  		"Sincos":          reflect.ValueOf(math.Sincos),
    65  		"Sinh":            reflect.ValueOf(math.Sinh),
    66  		"Sqrt":            reflect.ValueOf(math.Sqrt),
    67  		"Tan":             reflect.ValueOf(math.Tan),
    68  		"Tanh":            reflect.ValueOf(math.Tanh),
    69  		"Trunc":           reflect.ValueOf(math.Trunc),
    70  		"Y0":              reflect.ValueOf(math.Y0),
    71  		"Y1":              reflect.ValueOf(math.Y1),
    72  		"Yn":              reflect.ValueOf(math.Yn),
    73  	}
    74  }