Class ExprAbstract

Abstract base class for expressions
No Division. Use Mul(a, pow(b, -1))
No Subtraction. Use Sum(a, negate(b))

Hierarchy (view full)

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Check if a map of variables contains all variables used in this expression

    Parameters

    Returns void

  • Differentiate the expression with respect to a variable

    Parameters

    Returns undefined | Expr

  • Evaluate expression

    Parameters

    • vars: VarMap

      A map of variables to numbers to use while evaluating expressions

    • checkVars: boolean

      Weather to check if all needed variables are given or not

    Returns undefined | number

  • Simplify the expression. Can't do complete simplification
    Note: Simplification may remove expressions with no effect

    Returns Expr

  • Returns string

Generated using TypeDoc