C#DLL来解决简单的等式 [英] C# dll to solve simple equation

查看:110
本文介绍了C#DLL来解决简单的等式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个C#DLL来解决简单的方程。举例..

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

10 = 2 + 3 + X

10 = 2 + 3 + x

结果应该是X = 5;

Result should be x = 5;

有一个免费的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.

这篇关于C#DLL来解决简单的等式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆