From edbd6b0d284cadd6591eaeed0364bcde63c86f68 Mon Sep 17 00:00:00 2001 From: Jonathan Karr Date: Fri, 18 Feb 2022 10:05:25 -0500 Subject: [PATCH] Suggestion: separate duplicate names of functions and auxiliary variables XPP raises this warning ``` VEX is a duplicate name ``` --- HH-ext.ode | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/HH-ext.ode b/HH-ext.ode index d98038f..c596a82 100644 --- a/HH-ext.ode +++ b/HH-ext.ode @@ -18,10 +18,10 @@ bh(v)=1/(exp((30-v)/10)+1) an(v)=0.01*(10-v)/(exp((10-v)/10)-1) bn(v)=0.125*exp(-v/80) -vex(t)=vext*(sin(2*pi*(freq/1000)*t)) -ik=gk*n^4*(v+vex(t)-vk) -ina=gna*m^3*h*(v+vex(t)-vna) -il=gl*(v+vex(t)-vl) +f_vex(t)=vext*(sin(2*pi*(freq/1000)*t)) +ik=gk*n^4*(v+f_vex(t)-vk) +ina=gna*m^3*h*(v+f_vex(t)-vna) +il=gl*(v+f_vex(t)-vl) # the equations v'=(-ik-ina-il+iapp)/cm @@ -29,9 +29,9 @@ m'=(am(v)*(1-m)-bm(v)*m) n'=(an(v)*(1-n)-bn(v)*n) h'=(ah(v)*(1-h)-bh(v)*h) -aux vex=vex(t) +aux vex=f_vex(t) # set xpp parameters @ total=25000, xp=t, yp=v, xlo=0, xhi=25000, ylo=-20, yhi=120, bounds=10000000, dt=0.01 @ maxstor=10000000 -done \ No newline at end of file +done