Class Parser
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
differentiatorIDifferentiatorThe differentiator.
simplifierISimplifierThe simplifier.
converterIConverterThe unit converter.
Methods
Parse(string)
Parses the specified expression.
public IExpression Parse(string expression)
Parameters
expressionstringThe string expression.
Returns
- IExpression
The parsed expression.
- See Also