Commit 3a9a0753 authored by Aruchira's avatar Aruchira

Up

parent 7d0717d6
......@@ -9,7 +9,7 @@ def ge(A, b):
x = b.copy()
for k in range(n-1, -1, -1):
x[k] = (b[k] - np.dot(A[k,k+1:n], x[k+1:n]))/A[k,k]
x[k] = (b[k] - dot(a[k,k+1:n], x[k+1:n]))/a[k,k]
print(x)
......
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