Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Expression

extends

Scalar

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

arg_list

arg_list: Set<_Variable>

Set of Variable quantities this depends on.

op

operands

operands: Evaluable[] = []

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

quantity

quantity: "scalar" = "scalar"

type

type: "expression" = "expression"

Accessors

arg

lhs

  • The left hand side operand for this.op.

    throws

    If this.op is a UnaryOperator.

    Returns Evaluable

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 expresion.

    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 expresion.

    Parameters

    Returns Expression

    Expression for dividing this by that.

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 expresion.

    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 expresion.

    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 expresion.

    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 expresion.

    Parameters

    Returns Expression

    Expression for subtracting that from this.

Generated using TypeDoc