线性数学方程的方程求解器 [英] Equation Solvers for linear mathematical equations

查看:165
本文介绍了线性数学方程的方程求解器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的应用程序中解决几个数学方程。下面是一个典型的例子:

  a + b * c  -  d / e = a 



其他规则:




  • 10 = 0

  • b> = 0

  • b <= 100


  • ...



我想为a,b ,c,d和e。



是否有任何图书馆,无论是开源或商业,求解这样的方程?如果是,他们提供什么样的结果?

解决方案

解决。可以使用线性规划来解决线性系统。我建议您查看 Boost uBLAS 为初学者 - 它有一个简单的三角解算器。然后,您可以使用指向更多特定领域方法的结帐库,也许 QSopt


I need to solve a few mathematical equations in my application. Here's a typical example of such an equation:

a + b * c - d / e = a

Additional rules:

  • b % 10 = 0
  • b >= 0
  • b <= 100
  • Each number must be integer
  • ...

I would like to get the possible solution sets for a, b, c, d and e.

Are there any libraries out there, either open source or commercial, which I can use to solve such an equation? If yes, what kind of result do they provide?

解决方案

Solving linear systems can generally be solved using linear programming. I'd recommend taking a look at Boost uBLAS for starters - it has a simple triangular solver. Then you might checkout libraries targeting more domain specific approaches, perhaps QSopt.

这篇关于线性数学方程的方程求解器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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