Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonovAnton authored Oct 11, 2024
1 parent ffd2bb4 commit 50cd106
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,14 @@ Example of using custom context:

Examples of compilation:


Func<decimal> fn1 = "22’888.32 CHF * 30 / 323.34 / .5 - - 1 / (2 + 22’888.32 CHF) * 4 - 6"
.CompileDecimal(null, new CultureInfo("de-CH"));

var value1 = fn1();

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

.Compile(new ScientificMathContext(), null, new { x1 = 0.0, x2 = 0.0 });
var value2 = fn2(new { x1 = -0.5, x2 = 0.5 });

## How to debug or log
Expand Down

0 comments on commit 50cd106

Please sign in to comment.