2using System.Threading.Tasks;
15 private readonly
int nrDifferentiations;
48 for (i = 0; i < this.nrDifferentiations; i++)
53 Result = this.DifferentiateOnce(Node,
Variables);
88 return this.DifferentiateOnce(Differentiable,
Variables);
100 return this.DifferentiateOnce(Differentiable,
Variables);
111 return this.DifferentiateOnce(Differentiable,
Variables);
119 if (
string.IsNullOrEmpty(VariableName))
126 return new LambdaDefinition(
new string[] { VariableName },
new ArgumentType[] { ArgumentType.Normal },
Base class for all types of elements.
Script runtime exception.
Class managing a script expression.
Base class for all unary operators performing operand null checks.
bool NullCheck
If null check is to be used.
readonly bool nullCheck
If null should be returned if operand is null.
string VariableName
Variable Name.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
ScriptNode Operand
Operand.
Represents a variable reference.
static readonly DoubleNumber ZeroElement
0
static readonly ObjectValue Null
Null value.
Default Differentiation operator.
int NrDifferentiations
Number of differentiations.
override Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
override IElement Evaluate(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
DefaultDifferentiation(ScriptNode Operand, int NrDifferentiations, bool NullCheck, int Start, int Length, Expression Expression)
Default Differentiation operator.
override IElement Evaluate(IElement Operand, Variables Variables)
Evaluates the operator.
Contains information about a variable.
virtual bool TryGetVariable(string Name, out Variable Variable)
Tries to get a variable object, given its name.
Basic interface for all types of elements.
Base interface for lambda expressions.
ScriptNode Differentiate(string VariableName, Variables Variables)
Differentiates a script node, if possible.
string DefaultVariableName
Default variable name, if any, null otherwise.
Base interface for lambda expressions.
ArgumentType
Type of parameter used in a function definition or a lambda definition.