Skip to content

Limits on gating variables #3

@robertcannon

Description

@robertcannon

Hi Boris,
I saw your note about imposing limits when integrating HH equations with gating variables between 0 and 1.
One useful way round this is a change of variables so that instead of
0 < m < 1, the state variable is x where -inf < x < inf and m = exp(x)/(1+ exp(x)).

Then instead of dm/dt = rf * (1 - m) - rr * m
you have:
dx/dt = (1 + exp(x))^2 / exp(x) * (rf * (1 - m) - rr * m)

This behaves much better with simple integration schemes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions