trap0

NMODL and the Channel Builder.
Post Reply
ulrikhp

trap0

Post by ulrikhp »

I'm looking at mod-files that describe HH-style kinetics of different currents. Can someone tell me what the 'trap0' function exactly does?

Best regards,
Ulrik
ted
Site Admin
Posts: 6305
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: trap0

Post by ted »

Many HH-style channel descriptions have one or more gating variables that are governed by algebraic formulas in which the numerator and denominator become 0 at a particular value of membrane potential. "trap" functions use a conditional statement so that when v approaches such a singularity, L'hosptial's rule is used to evaluate the formula.
Post Reply