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
Kittipong Maneewong
numer-60-2
Commits
7bc14fb9
Commit
7bc14fb9
authored
Apr 05, 2018
by
Kittipong Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ส่งงาน week10
parent
b5a5dfeb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
RichExtra.py
week10/RichExtra.py
+25
-0
No files found.
week10/RichExtra.py
0 → 100644
View file @
7bc14fb9
from
math
import
e
def
Extrapolation
(
h1
,
p
):
g1
=
(
e
**
(
-
(
1
+
h1
))
-
2
*
e
**
(
-
1
)
+
e
**
(
-
(
1
-
h1
)))
/
(
h1
**
2
)
h2
=
h1
/
2
g2
=
(
e
**
(
-
(
1
+
h2
))
-
2
*
e
**
(
-
1
)
+
e
**
(
-
(
1
-
h2
)))
/
(
h2
**
2
)
return
(((
2
**
p
)
*
g2
)
-
g1
)
/
(
2
**
p
-
1
)
Extrapolation
(
0.64
,
2
)
def
G
(
h
):
cda
=
{
0.64
:
0.380610
,
0.32
:
0.371035
,
0.16
:
0.368711
,
0.08
:
0.368281
,
0.04
:
0.36875
,
0.02
:
0.37
,
0.01
:
0.38
,
0.005
:
0.40
,
0.0025
:
0.48
,
0.00125
:
1.28
}
return
cda
[
h
]
def
RichExtra
(
h
,
p
):
return
(((
2
**
p
)
*
G
(
h
/
2
))
-
G
(
h
))
/
(
2
**
p
-
1
)
RichExtra
(
0.64
,
2
)
####Output 0.36784333333333336
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