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
wongkai junttajit
numer-60-2
Commits
6c0dabf3
Commit
6c0dabf3
authored
Feb 15, 2018
by
wongkai junttajit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
16d34810
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
0 deletions
+59
-0
Chapter 03 Numerics and Error Analysis.ipynb-checkpoint.ipynb
...ter 03 Numerics and Error Analysis.ipynb-checkpoint.ipynb
+0
-0
Chapter 03 Numerics and Error Analysis.ipynb.ipynb
week03/Chapter 03 Numerics and Error Analysis.ipynb.ipynb
+22
-0
assignment.cpython-35.pyc
week03/__pycache__/assignment.cpython-35.pyc
+0
-0
assignment.py
week04/assignment.py
+12
-0
pe.py
week05/pe.py
+25
-0
No files found.
week03/.ipynb_checkpoints/Chapter 03 Numerics and Error Analysis.ipynb-checkpoint.ipynb
0 → 100644
View file @
6c0dabf3
This diff is collapsed.
Click to expand it.
week03/Chapter 03 Numerics and Error Analysis.ipynb.ipynb
View file @
6c0dabf3
...
...
@@ -361,6 +361,28 @@
" * **significand** $1.f$ "
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(1, -1)"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(-1)**0,(-1)**1\n",
"\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {
...
...
week03/__pycache__/assignment.cpython-35.pyc
0 → 100644
View file @
6c0dabf3
File added
week04/assignment.py
View file @
6c0dabf3
...
...
@@ -10,3 +10,15 @@ def double_prec(v):
v
+=
"0"
*
(
64
-
len
(
v
))
return
(
-
1
)
**
int
(
v
[
0
])
*
sum
([
int
(
v
[
i
])
*
2
**
(
11
-
i
)
for
i
in
range
(
1
,
64
)])
def
IEEEsingle
(
v
):
"""ใช้ IEEE สูตร
(-1)^2*2^(e-127)*1.f"""
def
IEEEdouble
(
v
):
"""ใช้ IEEE สูตร
(-1)^2*2^(e-1023)*1.f"""
week05/pe.py
0 → 100644
View file @
6c0dabf3
#5x88x88x8x8x
#วงศ์ไกร จัรทะจิต
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
))
#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
,
_
)
#รับ บี ----->2,1,3,4,4
b
=
list
(
map
(
int
,
input
()
.
split
(
','
)))
#ตอนนี้ เรามี a,b แล้วววววน่ะจ่ะ
solve
(
A
,
b
)
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