Documentation
¶
Index ¶
- func Absolute(e *eval.Evaluator, arguments string) (interface{}, error)
- func Add(left, right interface{}) (interface{}, error)
- func AddUnary(arg interface{}) (interface{}, error)
- func And(left, right interface{}) (interface{}, error)
- func Base2Exponential(e *eval.Evaluator, arguments string) (interface{}, error)
- func BaseEExponential(e *eval.Evaluator, arguments string) (interface{}, error)
- func Ceiling(e *eval.Evaluator, arguments string) (interface{}, error)
- func CubeRoot(e *eval.Evaluator, arguments string) (interface{}, error)
- func DecimalLog(e *eval.Evaluator, arguments string) (interface{}, error)
- func Divide(left, right interface{}) (interface{}, error)
- func DivideAllowDivideByZero(left, right interface{}) (interface{}, error)
- func Equal(left, right interface{}) (interface{}, error)
- func Floor(e *eval.Evaluator, arguments string) (interface{}, error)
- func Functions() map[string]eval.Function
- func GreaterThan(left, right interface{}) (interface{}, error)
- func GreaterThanOrEqual(left, right interface{}) (interface{}, error)
- func If(e *eval.Evaluator, arguments string) (interface{}, error)
- func LessThan(left, right interface{}) (interface{}, error)
- func LessThanOrEqual(left, right interface{}) (interface{}, error)
- func Maximum(e *eval.Evaluator, arguments string) (interface{}, error)
- func Minimum(e *eval.Evaluator, arguments string) (interface{}, error)
- func Modulo(left, right interface{}) (interface{}, error)
- func ModuloAllowDivideByZero(left, right interface{}) (interface{}, error)
- func Multiply(left, right interface{}) (interface{}, error)
- func NaturalLog(e *eval.Evaluator, arguments string) (interface{}, error)
- func NaturalLogSum1(e *eval.Evaluator, arguments string) (interface{}, error)
- func NewEvaluator(resolver eval.VariableResolver, divideByZeroReturnsZero bool) *eval.Evaluator
- func Not(arg interface{}) (interface{}, error)
- func NotEqual(left, right interface{}) (interface{}, error)
- func NumberFrom(arg interface{}) (f64d4.Int, error)
- func Operators(divideByZeroReturnsZero bool) []*eval.Operator
- func Or(left, right interface{}) (interface{}, error)
- func Power(left, right interface{}) (interface{}, error)
- func Round(e *eval.Evaluator, arguments string) (interface{}, error)
- func SquareRoot(e *eval.Evaluator, arguments string) (interface{}, error)
- func Subtract(left, right interface{}) (interface{}, error)
- func SubtractUnary(arg interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base2Exponential ¶
Base2Exponential returns 2**x, the base-2 exponential of its argument.
func BaseEExponential ¶
BaseEExponential returns e**x, the base-e exponential of its argument.
func DecimalLog ¶
DecimalLog returns the decimal logarithm of its argument.
func DivideAllowDivideByZero ¶
func DivideAllowDivideByZero(left, right interface{}) (interface{}, error)
DivideAllowDivideByZero / (returns 0 for division by 0)
func GreaterThanOrEqual ¶
func GreaterThanOrEqual(left, right interface{}) (interface{}, error)
GreaterThanOrEqual >=
func If ¶
If returns the second argument if the first argument resolves to true, or the third argument if it doesn't.
func LessThanOrEqual ¶
func LessThanOrEqual(left, right interface{}) (interface{}, error)
LessThanOrEqual <=
func ModuloAllowDivideByZero ¶ added in v1.62.0
func ModuloAllowDivideByZero(left, right interface{}) (interface{}, error)
ModuloAllowDivideByZero % (returns 0 for modulo 0)
func NaturalLog ¶
NaturalLog returns the natural logarithm of its argument.
func NaturalLogSum1 ¶ added in v1.62.0
NaturalLogSum1 returns the natural logarithm of the sum of its argument and 1.
func NewEvaluator ¶
func NewEvaluator(resolver eval.VariableResolver, divideByZeroReturnsZero bool) *eval.Evaluator
NewEvaluator creates a new evaluator whose number type is fixed.F64d4.
func NumberFrom ¶
NumberFrom attempts to extract a number from arg.
func SquareRoot ¶
SquareRoot returns the square root of it argument.
func Subtract ¶
func Subtract(left, right interface{}) (interface{}, error)
Subtract - (subtraction)
func SubtractUnary ¶
func SubtractUnary(arg interface{}) (interface{}, error)
SubtractUnary - (minus)
Types ¶
This section is empty.