Table of Contents

Class Derivative

Namespace
xFunc.Maths.Expressions
Assembly
xFunc.Maths.dll

Represents the 'deriv' function.

public class Derivative : DifferentParametersExpression, IExpression
Inheritance
Derivative
Implements
Inherited Members
Extension Methods

Constructors

Derivative(IDifferentiator, ISimplifier, IExpression)

Initializes a new instance of the Derivative class.

public Derivative(IDifferentiator differentiator, ISimplifier simplifier, IExpression expression)

Parameters

differentiator IDifferentiator

The differentiator.

simplifier ISimplifier

The simplifier.

expression IExpression

The expression.

Derivative(IDifferentiator, ISimplifier, IExpression, Variable)

Initializes a new instance of the Derivative class.

public Derivative(IDifferentiator differentiator, ISimplifier simplifier, IExpression expression, Variable variable)

Parameters

differentiator IDifferentiator

The differentiator.

simplifier ISimplifier

The simplifier.

expression IExpression

The expression.

variable Variable

The variable.

Derivative(IDifferentiator, ISimplifier, IExpression, Variable, Number)

Initializes a new instance of the Derivative class.

public Derivative(IDifferentiator differentiator, ISimplifier simplifier, IExpression expression, Variable variable, Number point)

Parameters

differentiator IDifferentiator

The differentiator.

simplifier ISimplifier

The simplifier.

expression IExpression

The expression.

variable Variable

The variable.

point Number

The point of derivation.

Properties

DerivativePoint

Gets the derivative point.

public Number? DerivativePoint { get; }

Property Value

Number

Differentiator

Gets the differentiator.

public IDifferentiator Differentiator { get; }

Property Value

IDifferentiator

Expression

Gets the expression.

public IExpression Expression { get; }

Property Value

IExpression

MaxParametersCount

Gets the maximum count of parameters. null - Infinity.

public override int? MaxParametersCount { get; }

Property Value

int?

MinParametersCount

Gets the minimum count of parameters.

public override int? MinParametersCount { get; }

Property Value

int?

Simplifier

Gets the simplifier.

public ISimplifier Simplifier { get; }

Property Value

ISimplifier

Variable

Gets the variable.

public Variable Variable { get; }

Property Value

Variable

Methods

AnalyzeInternal<TResult>(IAnalyzer<TResult>)

Analyzes the current expression.

protected override TResult AnalyzeInternal<TResult>(IAnalyzer<TResult> analyzer)

Parameters

analyzer IAnalyzer<TResult>

The analyzer.

Returns

TResult

The analysis result.

Type Parameters

TResult

The type of the result.

AnalyzeInternal<TResult, TContext>(IAnalyzer<TResult, TContext>, TContext)

Analyzes the current expression.

protected override TResult AnalyzeInternal<TResult, TContext>(IAnalyzer<TResult, TContext> analyzer, TContext context)

Parameters

analyzer IAnalyzer<TResult, TContext>

The analyzer.

context TContext

The context.

Returns

TResult

The analysis result.

Type Parameters

TResult

The type of the result.

TContext

The type of additional parameter for analyzer.

Clone(ImmutableArray<IExpression>?)

Clones this instance of the IExpression.

public override IExpression Clone(ImmutableArray<IExpression>? arguments = null)

Parameters

arguments ImmutableArray<IExpression>?

The list of arguments.

Returns

IExpression

Returns the new instance of IExpression that is a clone of this instance.

Execute(ExpressionParameters?)

Executes this expression.

public override object Execute(ExpressionParameters? parameters)

Parameters

parameters ExpressionParameters

An object that contains all parameters and functions for expressions.

Returns

object

A result of the execution.

Exceptions

ExecutionException

The result of evaluation of arguments is not supported.

See Also