Table of Contents

Class Simplify

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

Represents the Simplify function.

public class Simplify : UnaryExpression, IExpression
Inheritance
Simplify
Implements
Inherited Members
Extension Methods

Constructors

Simplify(ISimplifier, IExpression)

Initializes a new instance of the Simplify class.

public Simplify(ISimplifier simplifier, IExpression expression)

Parameters

simplifier ISimplifier

The simplifier.

expression IExpression

The argument of function.

Exceptions

ArgumentNullException

simplifier is null.

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(IExpression?)

Clones this instance of the IExpression.

public override IExpression Clone(IExpression? argument = null)

Parameters

argument IExpression

The argument of new expression.

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.

See Also