Code: Select all
INITIAL {
LOCAL tp, exp1
tp = 9.8330
factor = exp(-tp/tau1) -4*exp(-tp/tau2) +6*exp(-tp/tau3) -4*exp(-tp/tau4) +exp(-tp/tau5)
factor = 1/factor
exp1 = exp((-2*FARADAY*v*frac)/(R*1000*(273.15 + celsius))
m = k/(k + exp1)
A = 0
B = 0
C = 0
D = 0
E = 0
}
Translating MFnfast.mod into MFnfast.c
syntax error:
Illegal expression:
Illegal block at line 60 in file MFnfast.mod
m = k/(k + exp1)
^
make: *** [MFnfast.c] Error 1
Why is this illegal and where is a better place to put the block equation? I tried putting m and exp1 in FUNCTION blocks as in the mod files for voltage-dependent channels, but I got an error message as well.