问题描述
当方程实际上是全等值mod m
时,有人知道什么函数可用于求解线性系统吗?期望解决一个线性系统(A x = b)的值x,其中"A x与b相等"
Does anyone know what functions are available for solving linear systems when the equations are actually congruences mod m
? The desire is to solve a linear system (Ax = b) for values x in which "Ax is congruent to b"
关于在这种情况下如何执行高斯消除的讨论,但我希望使用MATLAB而不是尝试手动完成.
A discussion of how to perform gaussian elimination in this situation can be found here, but I was hoping to use MATLAB rather than attempting to do it by hand.
推荐答案
看看在这里找到的lincon()方法: http://www.mathworks.com /matlabcentral/fileexchange/32856-system-of-linear-congruences/content/lincon.m
Have a look at the lincon() method found here:http://www.mathworks.com/matlabcentral/fileexchange/32856-system-of-linear-congruences/content/lincon.m
这篇关于MATLAB:如何求解线性系统模数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!