Skip to content

Commit 7d61cd0

Browse files
Update figure2_trapping_time.py
1 parent ddebf44 commit 7d61cd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

figure2_trapping_time.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def jac_sn(x1,x2):
6767
# In[35]:
6868

6969

70-
def tan_inv(x,xinit,xfin):
70+
def tan_inv(x,xinit,xfin): #for ghost
7171
y =(1/(np.sqrt(0.01)))*(np.arctan((xfin)/np.sqrt(0.01))-np.arctan((xinit)/np.sqrt(0.01)))
7272
return y
73-
def log_inv(x,xinit,xfin):
73+
def log_inv(x,xinit,xfin): #for saddle
7474
y =(1/(2*np.sqrt(0.4)))*(np.log(np.abs(xfin-np.sqrt(0.4))/(xfin + np.sqrt(0.4)))-np.log(np.abs(xinit-np.sqrt(0.4))/(xinit + np.sqrt(0.4))))
7575
return y
7676

@@ -170,7 +170,7 @@ def log_inv(x,xinit,xfin):
170170
eig_list_final2=[]
171171

172172
jac=jac_sn
173-
width = 0.01
173+
width = 0.01 #grid length
174174
init_list =[]
175175
t_trap_theory=[]
176176
eig_trap_theory=[]

0 commit comments

Comments
 (0)