Commit 65370b26 authored by Navayos Pratumthong's avatar Navayos Pratumthong

homework

parent 7f09b5f3
This diff is collapsed.
# 59110440215
# นายนวยศ ประทุมทอง
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))
#sol
#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(',')))
# ตอนนี้เรามี A, 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