Commit 1c005439 authored by Sivakorn Bupphadee's avatar Sivakorn Bupphadee

update week05

parent 225d9e24
File added
/DS_Store/ DS_Store
\ No newline at end of file \ No newline at end of file
...@@ -4,4 +4,20 @@ def ge(A,B): ...@@ -4,4 +4,20 @@ def ge(A,B):
pass pass
def solve(A,b): def solve(A,b):
pass import numpy.linalg
result = numpy.linalg.solve(A,b)
for x in result:
print('Sx_1={}s'.format(x))
#5x3
m,n,_= map(int,input().split('x'))
print(m,n)
A=[]
for row in range(m):
# 2,3,1,4,7
A.append(list(map(int,input().split(','))))
print(n,_)
#รับ b -> 2,1,3,4,4
b = list(map(int,input().split(',')))
solve(A,b)
\ No newline at end of file
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