Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
numer-60-2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KANTAPONG SONG-NGAM
numer-60-2
Commits
1cadf783
Commit
1cadf783
authored
Feb 22, 2018
by
KANTAPONG SONG-NGAM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
work
parent
4852b197
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
6 deletions
+44
-6
ge.py
ge.py
+16
-1
ge.py
week05/ge.py
+25
-5
readme.md
week06/readme.md
+3
-0
No files found.
ge.py
View file @
1cadf783
...
@@ -5,4 +5,19 @@ def ge(A,b):
...
@@ -5,4 +5,19 @@ def ge(A,b):
pass
pass
def
solve
(
A
,
b
):
def
solve
(
A
,
b
):
pass
import
numpy.linalg
result
=
numpy
.
linapy
.
solve
(
A
,
b
)
for
x
in
result
:
print
(
'x_1={}'
.
format
(
x
))
m
,
n
,
o
=
map
(
int
,
input
()
.
spilt
(
'x'
))
print
(
m
,
n
)
a
=
[]
for
row
in
range
(
m
):
A
.
append
(
list
(
map
(
int
,
input
()
.
split
(
','
))))
print
(
n
,
o
)
#รับ b-> 2,1,3,4,4
b
=
list
(
map
(
int
,
input
()
.
split
(
','
)))
#ตอนนี้เรา มี A,b แล้ว
#solve(A,b)
week05/ge.py
View file @
1cadf783
#59110440024
#
59110440024
#
kantapong_song-ngam
#
นายนวยศ ประทุมทอง
def
ge
(
A
,
b
):
pass
def
solve
(
A
,
b
):
def
ge
(
A
,
b
):
pass
pass
def
solve
(
A
,
b
):
import
numpy.linalg
result
=
numpy
.
linalg
.
solve
(
A
,
b
)
for
x
in
result
:
print
(
'$x_1={}$'
,
format
(
x
))
#5x3
m
,
n
,
o
=
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
,
o
)
# รับ b -> 2,1,3,4,4
b
=
list
(
map
(
int
,
input
()
.
split
(
','
)))
# ตอนนี้เรามี A, b แล้ว
solve
(
A
,
b
)
week06/readme.md
0 → 100644
View file @
1cadf783
เขียนฟังก์ชั่นเพื่อหา Upper-triangular matrik(U) จากสมการ Ax= b
โดย Ux = c เป็นสมการที่ลกรูปแล้ว
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment