Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Expression

An expression represents a concept whose value depends on one or more unknowns (variables). That "value" can be evaluated given the value(s) of the unknown(s). More abstractly, an expression is some combination of constants and variables to represent a quantity whose value depends on the values of the variables it depends on.

As defined earlier, an expression is some combination of variables and constants. The thing which connects those bits together are operators. The Expression interface uses a tree structure to store the different operations which must be carried out on the operands. The postfix form of this tree would be identical to the postfix notation of the mathematical expression this object represents.

Hierarchy

Implemented by

Indexable

[x: string]: any

An expression represents a concept whose value depends on one or more unknowns (variables). That "value" can be evaluated given the value(s) of the unknown(s). More abstractly, an expression is some combination of constants and variables to represent a quantity whose value depends on the values of the variables it depends on.

As defined earlier, an expression is some combination of variables and constants. The thing which connects those bits together are operators. The Expression interface uses a tree structure to store the different operations which must be carried out on the operands. The postfix form of this tree would be identical to the postfix notation of the mathematical expression this object represents.

Index

Properties

arg

The operand for this.op.

throws

If this.op is a BinaryOperator.

arg_list

arg_list: Set<Variable>

Set of Variable quantities this depends on.

lhs

The left hand side operand for this.op.

throws

If this.op is a UnaryOperator.

op

operands

operands: Evaluable[]

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

quantity

quantity: string

The kind of physical quantity this implements.

rhs

The right hand side operand for this.op.

throws

If this.op is a UnaryOperator.

type

type: "expression"

Methods

at

isFunctionOf

Generated using TypeDoc