Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
solver
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
solver
Commits
69d636f8
Commit
69d636f8
authored
May 24, 2018
by
KANTAPONG SONG-NGAM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quiz1
parent
81e26324
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
solve.py
solver/solve.py
+3
-2
No files found.
solver/solve.py
View file @
69d636f8
...
@@ -5,7 +5,8 @@ def solve(A,b):
...
@@ -5,7 +5,8 @@ def solve(A,b):
A
=
np
.
array
(
A
,
float
)
A
=
np
.
array
(
A
,
float
)
b
=
np
.
array
(
b
,
float
)
b
=
np
.
array
(
b
,
float
)
x
=
lg
.
solve
(
A
,
b
)
x
=
lg
.
solve
(
A
,
b
)
print
(
x
)
return
x
return
x
A
=
[[
4
,
-
2
,
1
],[
-
2
,
4
,
-
2
],[
1
,
-
2
,
4
]]
A
=
[[
4
,
-
2
,
1
],[
-
2
,
4
,
-
2
],[
1
,
-
2
,
4
]]
b
=
[
11
,
-
16
,
17
]
b
=
[
11
,
-
16
,
17
]
solve
(
A
,
b
)
print
(
solve
(
A
,
b
))
\ No newline at end of file
\ 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