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
sumet
numer-60-2
Commits
db66499e
Commit
db66499e
authored
Feb 22, 2018
by
sumet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ส่งงานครับ hw06
parent
d4a2c1b6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
2 deletions
+28
-2
misc.xml
.idea/misc.xml
+2
-1
numer-60-2.iml
.idea/numer-60-2.iml
+1
-1
workspace.xml
.idea/workspace.xml
+0
-0
README.md
README.md
+0
-0
hw06.py
week06/hw06.py
+25
-0
No files found.
.idea/misc.xml
View file @
db66499e
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.6
.1 (~/anaconda3/bin/python3.6)
"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.6"
project-jdk-type=
"Python SDK"
/>
</project>
</project>
\ No newline at end of file
.idea/numer-60-2.iml
View file @
db66499e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"
inheritedJdk
"
/>
<orderEntry
type=
"
jdk"
jdkName=
"Python 3.6"
jdkType=
"Python SDK
"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</component>
<component
name=
"TestRunnerService"
>
<component
name=
"TestRunnerService"
>
...
...
.idea/workspace.xml
View file @
db66499e
This diff is collapsed.
Click to expand it.
README.md
deleted
100644 → 0
View file @
d4a2c1b6
week06/hw06.py
0 → 100644
View file @
db66499e
def
Ab2Uc
(
A
,
b
):
import
numpy
as
np
A
=
np
.
array
(
A
,
float
)
b
=
np
.
array
(
b
,
float
)
n
=
len
(
b
)
for
k
in
range
(
0
,
n
-
1
):
for
i
in
range
(
k
+
1
,
n
):
lam
=
A
[
i
,
k
]
/
A
[
k
,
k
]
A
[
i
,
k
+
1
:
n
]
=
A
[
i
,
k
+
1
:
n
]
-
lam
*
A
[
k
,
k
+
1
:
n
]
b
[
i
]
-=
lam
*
b
[
k
]
U
=
A
.
copy
()
c
=
b
.
copy
()
print
(
U
)
print
(
c
)
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
=
list
(
map
(
int
,
input
()
.
split
(
','
)))
Ab2Uc
(
A
,
b
)
\ 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