开发者

C# dll to solve simple equation

I am looking for a C# dll to solve simple equation. Example ..

10 = 2 + 3 + x

Result should be x 开发者_StackOverflow= 5;

Is there a free DLL?


I've used this Math Expression Parsing library with positive results. The documentation he's provided was very useful to boot.

http://www.codeproject.com/KB/recipes/MathieuMathParser.aspx?display=Print

Your app can then accommodate ad hoc equations which the library will parse into component parts. You can then provide the values for required variables and it will evaluate the result.

The library includes many function (trig, log, factorials, datetime, random, etc.) and can handle user-defined functions.


You can use Math Expression Editor Light (MEEL)


Use System.Math if you have to make something more diffucult then an addition. Otherwise .. do it your self IT'S FREE !

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜