BLM16.Util.Calculator
4.4.0
Prefix Reserved
dotnet add package BLM16.Util.Calculator --version 4.4.0
NuGet\Install-Package BLM16.Util.Calculator -Version 4.4.0
<PackageReference Include="BLM16.Util.Calculator" Version="4.4.0" />
paket add BLM16.Util.Calculator --version 4.4.0
#r "nuget: BLM16.Util.Calculator, 4.4.0"
// Install BLM16.Util.Calculator as a Cake Addin #addin nuget:?package=BLM16.Util.Calculator&version=4.4.0 // Install BLM16.Util.Calculator as a Cake Tool #tool nuget:?package=BLM16.Util.Calculator&version=4.4.0
Tokenized Calculator
This library parses and solves math equations from strings. Order of Operations Rules are followed.
Note: multiple consecutive exponents are evaluated as (a^b)^c not a^(b^c). Using brackets to explicitly outline order is advised.
Note: constants and functions are evaluated by length of symbol. If pi
and p
are defined, pi
evaluates to pi
not p * i
. Use operators or parentheses to be explicit about which constants to use.
Note: operators, constants, and functions are case-insensitive (Pi = pI = PI = pi
).
Predefined operators, constants, and functions exist for your convenience. Not all of them used by default however. In the calculator's initializer you can add things from DefaultOperators, DefaultConstants, DefaultFunctions, or your own custom values.
License
This code is licensed under the MIT License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- 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.