Code: Select all
for (var) stmt
Marianne
Code: Select all
for (var) stmt
Code: Select all
for (var, 0) stmt
Code: Select all
//=========================================================================
// calculate the space constant in response to a AC current
// lamda_AC(f) = 1/2*sqrt(diam/PI*f*Ra*Cm)
//=========================================================================
func lambda_f() { local diam, Cm, Rm
diam = 1 // in um
Cm = 1 // in uF/cm^2
Ra = 180 // in Ohm*cm^2
return 1e5*sqrt( diam / (4*PI*$1*Ra*Cm)) // in um
}
Code: Select all
//=========================================================================
// calculate the space constant in response to a DC current
// lamda_DC() = 1/2*sqrt(diam*Rm/Ra)
//=========================================================================
func lambda_DC() { local diam, Rm, Ra
diam = 1e-4 // in cm
Ra = 180. // in Ohm*cm^2
Rm = 16000 // in Ohm*cm
return 1e4*sqrt( (diam*Rm)/(4*Ra) )// in um
}
So am I, Jose. Thanks for discovering these errors. I think they're from a very early draft of that chapter, for a model that had different parameters than the one I finally settled on.Nin wrote:Although the values are pretty similar, I was a little confused about these differences.