111
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#列主元高斯消元法
|
||||
def SovleRowMain(A,b,round_num=15):
|
||||
ks = 0.00000001
|
||||
n = len(A)
|
||||
@@ -56,7 +57,7 @@ def SovleRowMain(A,b,round_num=15):
|
||||
|
||||
P[i][p[i]] = 1
|
||||
return P,L,U,b
|
||||
|
||||
#迭代改善法
|
||||
def IterativeMethod(A, b, err, N):
|
||||
b_c = [b[i] for i in range(len(b))]
|
||||
A_c = [[A[i][j] for j in range(len(A[0]))] for i in range(len(A))]
|
||||
|
||||
Reference in New Issue
Block a user