Read the equation
Membrane capacitance times voltage change equals external current minus sodium, potassium, and leak currents. The sodium and potassium conductances are modulated by gating variables m, h, and n. The recovered C++ component advances these coupled equations with Euler steps and explicit millivolt, millisecond, and current-density conventions.
Terms & definitions
| Term | Meaning in this source |
|---|---|
| C_m | Membrane capacitance density |
| V | Membrane potential |
| I_ext | External current density |
| m | Sodium activation gate |
| h | Sodium inactivation gate |
| n | Potassium activation gate |
| E | Reversal potentials |
How it works
Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.
Assumptions & limits
Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.
Original context
Read the surrounding source passage
}
};
// ═══════════════════════════════════════════════════════════════════════════════
// HODGKIN-HUXLEY MODEL
// The fundamental equations of neuronal action potentials
//
// C_m * dV/dt = I_ext - g_Na*m³*h*(V-E_Na) - g_K*n⁴*(V-E_K) - g_L*(V-E_L)
//
// Gating variables:
// dx/dt = α_x(V)*(1-x) - β_x(V)*x for x ∈ {m, h, n}
//
// ═══════════════════════════════════════════════════════════════════════════════
struct HodgkinHuxley {
// Membrane properties
float C_m = 1.0f; // μF/cm² - Membrane capacitance
float g_Na = 120.0f; // mS/cm² - Sodium conductanceExact original notation
C_m * dV/dt = I_ext - g_Na*m³*h*(V-E_Na) - g_K*n⁴*(V-E_K) - g_L*(V-E_L)