ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Hodgkin–Huxley membrane-current balance

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…

Implementation mathematicsSource recovered; runtime not executed
Learn with the Atlas

Learn to read this model

Start with the symbols, follow the operations, and check what the result means.

Open guided lesson
gh-eq-30d935e25def2d6dsource-comment-equation
Cm∗dV/dt=Iext−gNa∗m3∗h∗(V−ENa)−gK∗n4∗(V−EK)−gL∗(V−EL)C_m * dV/dt = I_ext - g_Na*m³*h*(V-E_Na) - g_K*n⁴*(V-E_K) - g_L*(V-E_L)

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

TermMeaning 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 conductance
Exact 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)

Related builds

Sources & provenance

01
C++ neural model components
Lines 91–91 · 33aa84f2aa61
02
C++ neural model components
Lines 91–91 · 33aa84f2aa61

Search equations, builds, manuscript text, and recovered sources.