Functions
Class ExprFunction
Extends ExprElement
constructor (fn: string, args: Array<ExprElement>): ExprFunction
Name | Type | Default | Description |
---|---|---|---|
fn | string | ||
args | Array<ExprElement> | … |
Accessor .unknowns
Returns a list of all variables used in the expression (excluding defined constants).
Method .recursiveSubstitute (vars: ExprMap): ExprElement
Recursively substitutes a new expression for a variable. NOTE: This function does not test for cyclical dependencies, which could lead to an infinite loop. You have to manually validate expressions first!
Name | Type | Default | Description |
---|---|---|---|
vars | ExprMap |
Class ExprTerm
Extends ExprElement
constructor (items: Array<ExprElement>): ExprTerm
Name | Type | Default | Description |
---|---|---|---|
items | Array<ExprElement> |
Accessor .unknowns
Returns a list of all variables used in the expression (excluding defined constants).
Method .recursiveSubstitute (vars: ExprMap): ExprElement
Recursively substitutes a new expression for a variable. NOTE: This function does not test for cyclical dependencies, which could lead to an infinite loop. You have to manually validate expressions first!
Name | Type | Default | Description |
---|---|---|---|
vars | ExprMap |