A composition of two given MathFunctions.
- Inheritance
- Object
- Expression
- MathFunction
- CompositeFunction
Constructors
- CompositeFunction(MathFunction f, MathFunction g)
-
Creates a function composition.…
Properties
- args → List<Variable>
-
List of arguments of this function. Arguments ust be of type Variable.
read / write, inherited - domainDimension → int
-
The domain of the 'first' function.
read-only - f → MathFunction
-
Members
f
andg
of the composite function.read / write - g → MathFunction
-
Members
f
andg
of the composite function.read / write - gDomainDimension → int
-
The domain of the 'second' function, which should match the range of the 'first function.
read-only - hashCode → int
-
Get a 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
Operators
-
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 ==(
other) → bool -
The equality operator.…
inherited -
operator unary-(
) → Expression -
Unary minus operator. Creates a UnaryMinus expression.
inherited -
operator ^(
Expression exp) → Expression -
Power operator. Creates a Power expression.
inherited
Methods
-
derive(
String toVar) → Expression -
Derives this expression with respect to the given variable.
-
evaluate(
EvaluationType type, ContextModel context) → dynamic -
The EvaluationType of
f
is detected automatically based on the domain dimension ofg
. This is because the input ofg
is the output off
(composite function).… -
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 -
noSuchMethod
is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed tonoSuchMethod
in anInvocation
. IfnoSuchMethod
returns a value, that value becomes the result of the original invocation.…inherited -
simplify(
) → Expression -
Simplifies both component functions.
-
toFullString(
) → String -
Returns the full string representation of this function. This could include the name, variables and expression.…
inherited -
toString(
) → String -
Returns a string version of this expression. Subclasses should override this method. The output should be kept compatible with the
Parser
.inherited