数值分析之直接法解线性方程组:高斯消去法、高斯乔丹消去法
高斯消去法(Gauss消去法)和高斯-乔丹消去法(Gauss-Jordan消去法)都很简单。代码如下:
高斯消去法:
function [x] = Gaussian_elim(a, b)
% a is a coefficient matrix, b is a column vector storing values of a*x,
% and here the return value
原创
2016-05-26 21:45:12 ·
3307 阅读 ·
1 评论