DefaultFunction class

A default function is predefined in this library. It contains no expression because the appropriate evaluation method usually uses native Dart math code.

Note: User-defined custom functions should derive from CustomFunction, which supports arbitrary expressions.

Inheritance
Implementers

Properties

args ↔ List<Variable>
List of arguments of this function. Arguments ust be of type Variable.
read / write, inherited
domainDimension → int
The dimension of the domain of definition of this function.
read-only, inherited
hashCode → int
The hash code for this object.
read-only, inherited
name ↔ String
Name of this function.
read / write, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string version of this expression. Subclasses should override this method. The output should be kept compatible with the Parser.
override
derive(String toVar) Expression
Derives this expression with respect to the given variable.
inherited
evaluate(EvaluationType type, ContextModel context) → dynamic
Evaluates this expression according to given type and context.
inherited
getParam(int i) Variable
Returns the i-th parameter of this function (0-based).
inherited
getParamByName(String name) Variable
Returns the parameter with the given name.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
simplify() Expression
Returns a simplified version of this expression. Subclasses should overwrite this method, if applicable.
inherited
toFullString() → String
Returns the full string representation of this function. This could include the name, variables and expression. [...]
inherited

Operators

operator %(Expression exp) Expression
Modulo operator. Creates a Modulo expression.
inherited
operator &(MathFunction g) MathFunction
Compose operator. Creates a CompositeFunction.
inherited
operator *(Expression exp) Expression
Multiply operator. Creates a Times expression.
inherited
operator +(Expression exp) Expression
Add operator. Creates a Plus expression.
inherited
operator -(Expression exp) Expression
Subtract operator. Creates a Minus expression.
inherited
operator /(Expression exp) Expression
Divide operator. Creates a Divide expression.
inherited
operator ==(dynamic other) → bool
The equality operator.
inherited
operator ^(Expression exp) Expression
Power operator. Creates a Power expression.
inherited
operator unary-() Expression
Unary minus operator. Creates a UnaryMinus expression.
inherited