本程序使用Python编程,可以使用两种方法(高斯消去法和改进后的列主元高斯消去法)来解决线性方程组。这两种方法的主要操作相似,区别在于改进后的方法每次在第k行消元时会将具有第k列最大元素的行与第k行交换,然后再进行消元。该算法适用于解决小型稠密矩阵,并具有较高的精度,可通过修改相关参数和重新定义方程组,以指定的精度求解指定的线性方程组。代码中有详细注释以便于更好理解代码内容。/ This program is programmed using Python and can be used to solve linear equations with two methods: Gaussian Elimination and Improved Column Principal Gaussian Elimination. The main operations of the two methods are similar, but the difference in the improved method is that when eliminating the kth row, it exchanges the row with the largest element in the kth column before elimination. This reduces rounding errors and has higher accuracy, making it a good algorithm for solving small dense matrices. By modifying related parameters and redefining the equation set, the specified linear equation set can be solved with the specified precision. The code contains detailed comments to help better understand the code content.
-
Notifications
You must be signed in to change notification settings - Fork 0
This program is programmed using Python and can be used to solve linear equations with two methods: Gaussian Elimination and Improved Column Principal Gaussian Elimination. /本程序使用Python编程,可以使用两种方法(高斯消去法和改进后的列主元高斯消去法)来解决线性方程组。这两种方法的主要操作相似,区别在于改进后的方法每次在第k行消元时会将具有第k列最大元素的行与第k行交换,然后再进行消元。
License
henrCh1/Gaussian-Elimination
About
This program is programmed using Python and can be used to solve linear equations with two methods: Gaussian Elimination and Improved Column Principal Gaussian Elimination. /本程序使用Python编程,可以使用两种方法(高斯消去法和改进后的列主元高斯消去法)来解决线性方程组。这两种方法的主要操作相似,区别在于改进后的方法每次在第k行消元时会将具有第k列最大元素的行与第k行交换,然后再进行消元。
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published