Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Expression

Hierarchy

Implements

Index

Constructors

constructor

Properties

arg_list

arg_list: Set<_Variable>

Set of Variable quantities this depends on.

classRef

classRef: Expression = Scalar.Expression

op

operands

operands: Evaluable[] = []

Array of Evaluable quantity/quantities this.op operates on.

quantity

quantity: "scalar" = "scalar"

rest

rest: any[]

type

type: "expression" = "expression"

Accessors

arg

lhs

  • The left hand side operand for this.op.

    throws

    If this.op is a UnaryOperator.

    Returns Evaluable

neg

rhs

  • The right hand side operand for this.op.

    throws

    If this.op is a UnaryOperator.

    Returns Evaluable

Methods

add

  • Creates and returns a Scalar.Expression for the addition of two Scalar objects. The type of this does not matter because adding a unknown scalar/scalar expression to another scalar always results in an expression.

    Parameters

    Returns Expression

    Expression for sum of this and that.

at

div

  • Creates and returns a Scalar.Expression for the division of two Scalar objects. The type of this does not matter because dividing a unknown scalar/scalar expression by another scalar always results in an expression.

    Parameters

    Returns Expression

    Expression for dividing this by that.

getDefinition

  • getDefinition(methodName: string): "instance" | "static" | "undefined"
  • Checks whether a method exists on the object or as a static member of the class.

    Parameters

    • methodName: string

      Name of the method.

    Returns "instance" | "static" | "undefined"

isFunctionOf

  • isFunctionOf(v: _Variable): boolean

mul

  • Creates and returns a Scalar.Expression for the multiplication of two Scalar objects. The type of this does not matter because multiplying a unknown scalar/scalar expression by another scalar always results in an expression.

    Parameters

    Returns Expression

    Expression for subtracting that from this.

  • Creates and returns a Vector.Expression for the scaling of a Vector object. The type of this does not matter because scaling a unknown vector/scalar expression by a scalar always results in an expression.

    Parameters

    Returns Expression

    Expression for scaling that by this.

pow

  • Creates and returns a Scalar.Expression for exponentiation of two Scalar objects. The type of this does not matter because exponentiating a scalar by a unknown scalar/scalar expression always results in an expression.

    Parameters

    Returns Expression

    Expression for exponentiating this by that.

sub

  • Creates and returns a Scalar.Expression for the subtraction of two Scalar objects. The type of this does not matter because subtracting a unknown scalar/scalar expression from another scalar always results in an expression.

    Parameters

    Returns Expression

    Expression for subtracting that from this.

Static abs

Static acos

Static acosh

Static asin

Static asinh

Static atan

Static atanh

Static ceil

Static cos

Static cosh

Static exp

Static floor

Static ln

Static log

Static sin

Static sinh

Static tan

Static tanh

Generated using TypeDoc