Mathos Parser is a mathematical expression parser, built on top of the .NET Framework, which allows you to parse all kinds of mathematical expressions, and in addition, add your own custom functions, operators, and variables.


* Parse all kinds of mathematical expressions.
* Add conditional statements.
* Customize operators. Add/edit existing operators, change behaviour of operators.
* Programatically add variables before and on the run time.
* Custom own functions with almost unlimited amount of arguments.
* Using trig functions: sine, cosine, tangents, and also: arc sine, arc cosine, arc tangent.
* Supports almost all of the functions available in System.Math, such as: pow, round, sqrt, rem, abs, and more!
* Culture independent. No matter on what machine the library is being used - the same configurations for everyone.
* Decimal operations.
* And much more!

There is a newer version of this package available.
See the version list below for details.
Install-Package MathosParser -Version
dotnet add package MathosParser --version
<PackageReference Include="MathosParser" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MathosParser --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

from v.
Added the suggestions by Anders @ Cureos to allow a Portable Class Library to be created.
The issue can be found here:

from v.
* Force user to use ReadOnlyCollection when using a token list as a parameter.
from v.
* Added method GetTokens
* Changed the structure a bit. Now, the Scanner returns tokens instead of continuing with MathParserLogic. This is good if the same kind of expression is to be used many times.


This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 6,073 6/24/2018 6,958 1/3/2015 573 10/27/2014 617 7/5/2014 480 7/5/2014 541 5/26/2014 598 2/7/2014