Skip to content

2.0.0

Compare
Choose a tag to compare
@AntonovAnton AntonovAnton released this 06 Sep 16:40
· 21 commits to main since this release
d1fb26f

Added support for compiling mathematical expression strings into executable code, producing a delegate that represents the expression.

Example:

var fn = "ln(1/x1 + √(1/(x2*x2) + 1))"
    .Compile(new { x1 = 0.0, x2 = 0.0 }, new ScientificMathContext());

var value = fn(new { x1 = -0.5, x2 = 0.5 });

This enhancement allows for efficient evaluation of complex mathematical expressions by converting them into callable delegates.

Added MathExpression class instead of the MathEvaluator class that combines evaluation and compilation. Static methods are removed.