Code Snippets Faust

Short texts Faust 🧑‍💻 Code snippets Faust ✍️ Reading lists Faust 👀

Hodgkin-Huxley neuron model in Faust

import(“stdfaust.lib”); hodgkin_huxley(I) = V letrec { ‘V = V + dt*(I – (g_K*pow(n,4.0)*(V – V_K) + g_Na*h*pow(m,3.0)*(V – V_Na) + g_l*(V-V_l)))/C_m ; ‘h = h + dt*(a_h(V)*(1.0 – h) – b_h( V ) * h) ; ‘m = m + dt*(a_m(V)*(1.0 – m) – b_m( V ) * m) ; ‘n = n + dt*(a_n(V)*(1.0 […]