解决code线性方程的最佳方法 [英] Best way to solve a linear equation in code

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

问题描述

  

可能重复:
  求解线性方程

我需要以编程方式求解线性方程组的系统,在C#和VB

下面的公式示例:

  12.40 = A * 56.0 + B * 27.0 + TX
-53.39 =一个* 12.0 + B * 59.0 + TX
 14.94 =一个* 53.0 + B * 41.0 + TX
 

我想获得A,B,和TX最佳逼近。

我应该使用某种形式的矩阵类或某事?<​​/ P>

解决方案

我想我们已经看到了这个问题早已:的解决线性方程

Possible Duplicate:
Solving a linear equation

I need to programmatically solve a system of linear equations in C# AND VB

Here's an example of the equations:

 12.40 = a * 56.0 + b * 27.0 + tx
-53.39 = a * 12.0 + b * 59.0 + tx
 14.94 = a * 53.0 + b * 41.0 + tx

I'd like to get the best approximation for a, b, and tx.

Should i use some sort of matrix class or something?

解决方案

i think we've seen this question already: Solving a linear equation

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

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