You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.
When calculating values of derived units from other units when needed to do a calculation like multiplication or division there is an error in the computed values by mod2c and NEURON.
For example for:
UNITS {
R = 8.313424 (joule/degC)
J = (R-mole) (1)
test = (mole) (1)
}
/** constants used in nmodl from UNITS */
static const double R = 8.313424;
static const double J = 5.00646095255622339e+24;
static const double test = 6.02214075999999987e+23;
From the above we see that mole = 6.02214075999999987e+23, R = 8.313424 and if we calculate by hand J = R*mole we have:
When calculating values of derived units from other units when needed to do a calculation like multiplication or division there is an error in the computed values by
mod2c
andNEURON
.For example for:
We have with
NEURON
:With
mod2c
:With
NMODL
:From the above we see that
mole = 6.02214075999999987e+23
,R = 8.313424
and if we calculate by handJ = R*mole
we have:This value is the same with
NMODL
, however the values inmod2c
andNEURON
are differentThe text was updated successfully, but these errors were encountered: