摘要
本文直接根据行列式的定义,用QBASIC语言给出了计算行列式的算法。在运算过程中,只使用了乘法及加法运算,避免了因除法运算带来的计算误差,特别是行列式中的元素为整数并且计算结果是8位以下的整数时则完全没有误差,再使用克莱姆法则能求出线性方程组非常精确的解。
This article directly uses the definition of determinant to give the solving process of it with QBASIC language. Since duing the operation, it only uses addition and multiplication and avoids the arithmetic error in division (especially when the element in the determinant is integer) so that it seldom has error. Then using Cramer's rule it can extract very accurate solution of systems of linear equation.
出处
《黄石高等专科学校学报》
2003年第2期46-47,共2页
Journal of Huangshi Polytechnic College