Commit 6b77d3d9 authored by Pattadon Jaisin's avatar Pattadon Jaisin

add readme

parent 5e0aa93f
No preview for this file type
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="57f230c4-5ecd-455e-b4bf-fa14937be6bc" name="Default" comment="" />
<list default="true" id="57f230c4-5ecd-455e-b4bf-fa14937be6bc" name="Default" comment="">
<change beforePath="$PROJECT_DIR$/week05/ge.py" afterPath="$PROJECT_DIR$/week05/ge.py" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -14,8 +16,8 @@
<file leaf-file-name="assignment.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/week04/assignment.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="435">
<caret line="29" column="22" lean-forward="true" selection-start-line="29" selection-start-column="22" selection-end-line="29" selection-end-column="22" />
<state relative-caret-position="345">
<caret line="23" column="29" lean-forward="false" selection-start-line="23" selection-start-column="29" selection-end-line="23" selection-end-column="29" />
<folding />
</state>
</provider>
......@@ -143,8 +145,16 @@
</entry>
<entry file="file://$PROJECT_DIR$/week04/assignment.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="435">
<caret line="29" column="22" lean-forward="true" selection-start-line="29" selection-start-column="22" selection-end-line="29" selection-end-column="22" />
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/week04/assignment.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="345">
<caret line="23" column="29" lean-forward="false" selection-start-line="23" selection-start-column="29" selection-end-line="23" selection-end-column="29" />
<folding />
</state>
</provider>
......
#5811403741
def ge(A, b):
pass
def solve(A, b):
import numpy.linalg
numpy.linalg.solve(A,b)
for x in result:
print('Sx_1={}s'.format(x))
m,n,_ =map(int, input().split('x'))
print(n,_)
A = []
for row in range(m):
A.append(list(map(int, input().split(','))))
print(n, _)
b = list(map(int, input().spilt(',')))
solve(A,b)
\ No newline at end of file
เขียนฟังก์ชั่นเพื่อหา upper-triangular martix (u) จากสมการ Ax = b โดย Ux=c เป็นสมการที่ลดรูปแล้ว
\ 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