Skip to content

Custom functions in HH_traub.mod and IM_cortex.mod #7

@JustasB

Description

@JustasB

In the original version, the following functions are used in the mod files:

FUNCTION vtrap(x,y) {
    if (fabs(x/y) < 1e-6) {
        vtrap = y*(1 - x/y/2)
    }else{
        vtrap = x/(Exp(x/y)-1)
    }
}

FUNCTION Exp(x) {
    if (x < -100) {
        Exp = 0
    }else{
        Exp = exp(x)
    }
} 
FUNCTION exptable(x) { 
    TABLE  FROM -25 TO 25 WITH 10000

    if ((x > -25) && (x < 25)) {
        exptable = exp(x)
    } else {
        exptable = 0.
    }
}

They probably lead to small differences between LEMS -neuron and original versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions