Table of Contents

Class Parser

Namespace
xFunc.Maths
Assembly
xFunc.Maths.dll

The parser for mathematical expressions.

public class Parser : IParser
Inheritance
Parser
Implements
Inherited Members

Examples

var parser = new Parser();
var exp = parser.Parse("sin(x)");

Constructors

Parser()

Initializes a new instance of the Parser class with default implementations of IDifferentiator, ISimplifier and IConverter.

public Parser()
See Also

Parser(IDifferentiator, ISimplifier, IConverter)

Initializes a new instance of the Parser class.

public Parser(IDifferentiator differentiator, ISimplifier simplifier, IConverter converter)

Parameters

differentiator IDifferentiator

The differentiator.

simplifier ISimplifier

The simplifier.

converter IConverter

The unit converter.

Methods

Parse(string)

Parses the specified expression.

public IExpression Parse(string expression)

Parameters

expression string

The string expression.

Returns

IExpression

The parsed expression.

See Also