矩阵变换解一元N次方程的源代码,这是这次我们做仿真电学实验软件Team里一个人写的不过他不太喜欢注释,可能看得要辛苦点 using System; using System.Collections.Generic; using System.Text; namespace Object { public class Matrix { public Matrix() { } public Matrix(double[,] matrix) { this.matrix = matrix; } double[,] matrix = new double[1, 1];//定义数组 public double[,] GetMatrix//获取设置数组 { get { return matrix; } set { matrix = value; } } public void Account(double[,] matrix, double[] mb, int number)//消除前排主项 { for (int i = 0; i < number; i++) { for (int j = i + 1; j < number; j++) { double temp; if (matrix[j, i] !=