Documentation ¶
Overview ¶
Package math contains wdte.Funcs for performing mathematical operations.
Index ¶
- Constants
- Variables
- func Abs(frame wdte.Frame, args ...wdte.Func) wdte.Func
- func Ceil(frame wdte.Frame, args ...wdte.Func) wdte.Func
- func Cos(frame wdte.Frame, args ...wdte.Func) wdte.Func
- func Floor(frame wdte.Frame, args ...wdte.Func) wdte.Func
- func Sin(frame wdte.Frame, args ...wdte.Func) wdte.Func
- func Tan(frame wdte.Frame, args ...wdte.Func) wdte.Func
Constants ¶
View Source
const ( E wdte.Number = math.E Pi wdte.Number = math.Pi Sqrt2 wdte.Number = math.Sqrt2 )
A number of useful constants. To see the IDs under which they are exported, see Scope.
Variables ¶
View Source
var Scope = wdte.S().Map(map[wdte.ID]wdte.Func{ "e": E, "pi": Pi, "sqrt2": Sqrt2, "sin": wdte.GoFunc(Sin), "cos": wdte.GoFunc(Cos), "tan": wdte.GoFunc(Tan), "floor": wdte.GoFunc(Floor), "ceil": wdte.GoFunc(Ceil), "abs": wdte.GoFunc(Abs), })
Scope is a scope that contains the functions in this package.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.