exec

package
v0.0.0-...-0feb360 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(a *context.Value) (*context.Value, error)

Abs returns the absolute value of x.

func Acos

func Acos(a *context.Value) (*context.Value, error)

Acos returns the arccosine, in radians, of x.

func Acosh

func Acosh(a *context.Value) (*context.Value, error)

Acosh returns the inverse hyperbolic cosine of x.

func Add

func Add(a *context.Value, b *context.Value) (*context.Value, error)

Addition of 2 values. If one value is a float then the result will be a float. If an Integer then the result will be an integer. For booleans then it's integer equivalent is used. Strings will be concatenated.

func AndHandler

func AndHandler(m *context.Context, n *context.Node) error

a and b

func Asin

func Asin(a *context.Value) (*context.Value, error)

Asin returns the arcsine, in radians, of x.

func Asinh

func Asinh(a *context.Value) (*context.Value, error)

Asinh returns the inverse hyperbolic sine of x.

func Atan

func Atan(a *context.Value) (*context.Value, error)

Atan returns the arctangent, in radians, of x.

func Atanh

func Atanh(a *context.Value) (*context.Value, error)

Atanh returns the inverse hyperbolic tangent of x.

func BetweenHandler

func BetweenHandler(m *context.Context, n *context.Node) error

a between b and c

func Cbrt

func Cbrt(a *context.Value) (*context.Value, error)

Cbrt returns the cube root of x.

func Ceil

func Ceil(a *context.Value) (*context.Value, error)

Ceil returns the least integer value greater than or equal to x.

func Conj

func Conj(a *context.Value) (*context.Value, error)

Conj returns the complex conjugate of x.

func Cos

func Cos(a *context.Value) (*context.Value, error)

Cos returns the cosine of the radian argument x.

func Cosh

func Cosh(a *context.Value) (*context.Value, error)

Cosh returns the hyperbolic cosine of x.

func Cot

func Cot(a *context.Value) (*context.Value, error)

Cot returns the cotangent of x.

func Div

func Div(a *context.Value, b *context.Value) (*context.Value, error)

Division of two values. If one value is a float then the result will be a float. If an Integer then the result will be an integer. For booleans then it's integer equivalent is used. An error will be returned is a divide-by-zero would occur.

func DoUntilHandler

func DoUntilHandler(m *context.Context, n *context.Node) error

func DoWhileHandler

func DoWhileHandler(m *context.Context, n *context.Node) error

func Equal

func Equal(a *context.Value, b *context.Value) (*context.Value, error)

Compare two values for equality

func Erf

func Erf(a *context.Value) (*context.Value, error)

Erf returns the error function of x.

func Erfc

func Erfc(a *context.Value) (*context.Value, error)

Erfc returns the complementary error function of x.

func Erfcinv

func Erfcinv(a *context.Value) (*context.Value, error)

Erfcinv returns the inverse of Erfc(x).

func Erfinv

func Erfinv(a *context.Value) (*context.Value, error)

Erfinv returns the inverse error function of x.

func Exp

func Exp(a *context.Value) (*context.Value, error)

Exp returns e**x, the base-e exponential of x.

func Exp2

func Exp2(a *context.Value) (*context.Value, error)

Exp2 returns 2**x, the base-2 exponential of x.

func Expm1

func Expm1(a *context.Value) (*context.Value, error)

Expm1 returns e**x - 1, the base-e exponential of x minus 1. It is more accurate than Exp(x) - 1 when x is near zero.

func FalseHandler

func FalseHandler(m *context.Context, n *context.Node) error

Boolean false

func Floor

func Floor(a *context.Value) (*context.Value, error)

Floor returns the greatest integer value less than or equal to x.

func ForHandler

func ForHandler(m *context.Context, n *context.Node) error

func Gamma

func Gamma(a *context.Value) (*context.Value, error)

Gamma returns the Gamma function of x.

func GetVarHandler

func GetVarHandler(m *context.Context, n *context.Node) error

Get a variable. If the variable does not exist then an error is returned.

func GreaterThan

func GreaterThan(a *context.Value, b *context.Value) (*context.Value, error)

a > b

func GreaterThanEqual

func GreaterThanEqual(a *context.Value, b *context.Value) (*context.Value, error)

a >= b

func IfHandler

func IfHandler(m *context.Context, n *context.Node) error

func Ilogb

func Ilogb(a *context.Value) (*context.Value, error)

Ilogb returns the binary exponent of x as an integer.

func Imag

func Imag(a *context.Value) (*context.Value, error)

Imag returns the imaginary component of a complex number

func InvokeAllHandler

func InvokeAllHandler(m *context.Context, n *context.Node) error

InvokeAllHandler Invokes all nodes within the supplied list

func InvokeScopeHandler

func InvokeScopeHandler(m *context.Context, n *context.Node) error

InvokeScopeHandler calls invokeAllHandler with a variable scope that lasts for the duration of the call

func IsNaN

func IsNaN(a *context.Value) (*context.Value, error)

IsNaN reports whether f is an IEEE 754 “not-a-number” value.

func J0

func J0(a *context.Value) (*context.Value, error)

J0 returns the order-zero Bessel function of the first kind.

func J1

func J1(a *context.Value) (*context.Value, error)

J1 returns the order-one Bessel function of the first kind.

func LessThan

func LessThan(a *context.Value, b *context.Value) (*context.Value, error)

a < b

func LessThanEqual

func LessThanEqual(a *context.Value, b *context.Value) (*context.Value, error)

a <= b

func Log

func Log(a *context.Value) (*context.Value, error)

Log returns the natural logarithm of x.

func Log10

func Log10(a *context.Value) (*context.Value, error)

Log10 returns the decimal logarithm of x

func Log1p

func Log1p(a *context.Value) (*context.Value, error)

Log1p returns the natural logarithm of 1 plus its argument x. It is more accurate than Log(1 + x) when x is near zero.

func Log2

func Log2(a *context.Value) (*context.Value, error)

Log2 returns the binary logarithm of x.

func Logb

func Logb(a *context.Value) (*context.Value, error)

Logb returns the binary exponent of x.

func Mult

func Mult(a *context.Value, b *context.Value) (*context.Value, error)

Multiplication of two values. If one value is a float then the result will be a float. If an Integer then the result will be an integer. For booleans then it's integer equivalent is used.

func Neg

func Neg(a *context.Value) (*context.Value, error)

func NegHandler

func NegHandler(m *context.Context, n *context.Node) error

NegHandler negates a value

func NotEqual

func NotEqual(a *context.Value, b *context.Value) (*context.Value, error)

Compare two values for inequality

func NotHandler

func NotHandler(m *context.Context, n *context.Node) error

!a

func NullHandler

func NullHandler(m *context.Context, n *context.Node) error

Null/Nil value

func OrHandler

func OrHandler(m *context.Context, n *context.Node) error

a or b

func Phase

func Phase(a *context.Value) (*context.Value, error)

Pow10 returns 10**n, the base-10 exponential of n.

func Pow10

func Pow10(a *context.Value) (*context.Value, error)

Pow10 returns 10**n, the base-10 exponential of n.

func Real

func Real(a *context.Value) (*context.Value, error)

Real returns the real component of a complex number

func RealComplex1

func RealComplex1(rf func(float64) float64, cf func(complex128) complex128, a *context.Value) (*context.Value, error)

RealComplex1 invokes a function based on the value type. If a is numeric then rf will be used. If a is complex then cf will be used. An error will be returned if the value is not numeric or complex

func Round

func Round(a *context.Value) (*context.Value, error)

Round returns the nearest integer, rounding half away from zero.

func Round2even

func Round2even(a *context.Value) (*context.Value, error)

RoundToEven returns the nearest integer, rounding ties to even.

func SetVarHandler

func SetVarHandler(m *context.Context, n *context.Node) error

Set a variable

func Sin

func Sin(a *context.Value) (*context.Value, error)

Sin returns the sine of the radian argument x.

func Sinh

func Sinh(a *context.Value) (*context.Value, error)

Sinh returns the hyperbolic sine of x.

func Sqrt

func Sqrt(a *context.Value) (*context.Value, error)

Sqrt returns the square root of x.

func Sub

func Sub(a *context.Value, b *context.Value) (*context.Value, error)

Subtraction of two values If one value is a float then the result will be a float. If an Integer then the result will be an integer. For booleans then it's integer equivalent is used.

func Tan

func Tan(a *context.Value) (*context.Value, error)

Tan returns the tangent of the radian argument x.

func Tanh

func Tanh(a *context.Value) (*context.Value, error)

Tanh returns the hyperbolic tangent of x.

func ToImaginary

func ToImaginary(a *context.Value) (*context.Value, error)

ToImaginary converts a value into a complex number using the value as the imaginary component.

func TrueHandler

func TrueHandler(m *context.Context, n *context.Node) error

Boolean true

func Trunc

func Trunc(a *context.Value) (*context.Value, error)

Trunc returns the integer value of x.

func UntilHandler

func UntilHandler(m *context.Context, n *context.Node) error

func WhileHandler

func WhileHandler(m *context.Context, n *context.Node) error

func Y0

func Y0(a *context.Value) (*context.Value, error)

Y0 returns the order-zero Bessel function of the second kind.

func Y1

func Y1(a *context.Value) (*context.Value, error)

Y1 returns the order-one Bessel function of the second kind.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL