An expression library that solver math expression
Just clone and compile the soluction and you will have a dll: Expression.dll
😃
Simple expression
var resolver = new Resolver("a * 2");
resolver ["a"] = 5;
var result = resolver.SolverExpression ();Logical expression
var resolver = new Resolver ("a * 2 > b - 2 + (b * a)");
resolver ["a"] = 5;
resolver ["b"] = 10;
var result = resolver.SolverExpression ();
// result will be 0 if false or 1 if true; log10 -
log -
log2 -
sin -
cos -
tan -
asin -
acos -
atan -
pi - PI constant
e - Neperian
(+) (Adition)
(-) (subtration)
(*) (multiplication)
/ (divide)
! - Factorial