-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleFunction.py
More file actions
48 lines (41 loc) · 1.23 KB
/
SampleFunction.py
File metadata and controls
48 lines (41 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
'''
Renormalization Plot - SampleFunction.py
A sample configuration file for a one-parameter family unimodal map
WARNING: The options in this configuration file will be modified/renamed
in the later versions in order to add new functions to this program
'''
import numpy as np
parameterMin=1
parameterMax=2
#1.784972834669053
# 11-renormalizable without interpolation
#parameterValue=1.7849728346094484
# //27-renormalizable with interpolation
# mechane precision 18-renormalizable
parameterValue=1.7849728359354726
# 7 period trippling renormalizable
# parameterValue=1.927038981795398
parameterZoom=2.0
figureSecondIterate=False
figureMultipleIterate=True
figureDiagonal=True
figureBeta0=True
figureSelfReturn=True
figureMaxLevels=5
figureAlpha1=True
figureBeta1=True
precisionPeriodicA=1e-10
precisionPeriodicR=1e-06
interpolationEnabled=True
# unit second
interpolationThreshold=0.02
# precision of sampling points for the interpolation
interpolationPrecision=1e-04
# one-parameter unimodal map
__one=np.float64(1)
def func(x, parameter):
#x=np.float64(x)
return parameter*(__one+x)*(__one-x)-__one
# critical point for the one-paraameter family
def func_c(parameter):
return 0