Commit 58a59d22 authored by sumet's avatar sumet

ส่งงานครับ

parent 1e34ac4b
This diff is collapsed.
#59110440420
#Sumet saenpang
def ge(A, b):
pass
def solve(A, b):
import numpy.linalg
result = numpy.linalg.solve(A,b)
for x in result:
print('$x_1={}$'.format(x))
#5x3x1
m,n,_ = map(int,input().split('x'))
print(m,n)
A = []
for i in range(m):
A.append(list(map(int, input().split(','))))
print(n,_)
#รับ b -> 2,1,3,4,4
b = list(map(int, input().split(',')))
#รับ b มาแล้ว
solve(A,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