Commit 50f65e8d authored by Littichai Buddaken's avatar Littichai Buddaken

edit week05/ge.py

parent d34fe302
......@@ -2,8 +2,8 @@
# นายฤทธิชัย บุดดาเคน
def ge(A,b):
import numpy as np
A =np.array([[4,-2,1],[-2,4,-2],[1,-2,4]],float)
b =np.array([11,-16,17],float)
A =np.array(A,float)
b =np.array(b,float)
n=len(b)
for k in range(0, n-1):
#print('k =',k)
......
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