Commit 8f26b7d6 authored by pattaraporn's avatar pattaraporn

ขอเอค่ะ

parent 4d86649e
def Ax2Ux(A, b):
n = len(b)
for j in range(0, n-1):
for i in range(j+1, n):
lam = A[i,j]/A[j,j]
A[i,j:n] = A[i, j:n] - lam*A[j, j:n]
b[i] = b[i] - lam*b[j]
print("U =",A)
print("C =",b)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment