HiveKion.Expression NuGet Package

数学表达式计算,支持的函数包括("sin", "cos", "tan", "arcsin", "arccos", "arctan", "sqrt", "max", "min", "floor", "ceiling", "log", "log10", "ln", "round", "abs", "neg", "pos")。

使用方法:
var expression = "(1+6)*6/2";
var ret = 0d;
var isSuccess = CalculateInstance.GetInstance().Evaluate(expression, ref ret);
Console.WriteLine($"计算状态是{isSuccess},计算结果是:{ret}");.




Got any HiveKion.Expression Question?





Info

Version: 1.1.0
Author(s): HiveKion
Last Update: Friday, October 9, 2020
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/HiveKion.Expression


Install
Install-Package HiveKion.Expression
dotnet add package HiveKion.Expression
paket add HiveKion.Expression
HiveKion.Expression Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

avg-downloads-per-day

0

days-since-last-release

1505