Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
NTDLS committed Dec 31, 2024
2 parents 228e8e2 + c612914 commit 018a9a3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Josh Patterson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ ExpressionParser is a mathematics parsing engine for .net. It supports expressio

It addition to the custom functions and variables, these are built in: ACOS, ASIN, ATAN, ATAN2, LDEXP, SINH, COSH, TANH, LOG, LOG10, EXP, MODPOW, SQRT, POW, FLOOR, CEIL, NOT, AVG, SUM, TAN, ATAN, SIN, COS, ABS.

If you can for the C++ version you can find it at: https://github.com/NTDLS/CMathParser
👀 If you came for the C++ version you can find it at: https://github.com/NTDLS/CMathParser

Basic example usage:
👀 Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.ExpressionParser/

Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.ExpressionParser/
## Basic usage:

>**Simple Example:**
>
Expand All @@ -26,10 +26,10 @@ Console.WriteLine($"{result:n2}");
>In this example we simply call the static function Expression.Evaluate to compute the string expression, and we also supply an output parameter for which the parser will use to explain the operations.
```csharp

var result = Expression.Evaluate("10 * ((1000 / 5 + (10 * 11))), out var explination");
var result = Expression.Evaluate("10 * ((1000 / 5 + (10 * 11))), out var explanation");

Console.WriteLine($"{result:n2}");
Console.WriteLine(explination);
Console.WriteLine(explanation);
```

>**Advanced Example:**
Expand Down

0 comments on commit 018a9a3

Please sign in to comment.