Skip to content
Prev 317810 / 398513 Next

attempt to apply non-function

On 18-02-2013, at 15:19, Jannetta Steyn <jannetta at henning.org> wrote:

            
There is a missing multiply * in the second line

   m_Na <- function(v) 1 / (1 + 15 * exp(-0.769 * (v+34)) * ((1 -
exp(-0.05(v+6)/0.11 * v + 0.66))))

Because you don't have a * between 0.05 and (v+6) in the second exp()
you are applying a non function.
Write

   m_Na <- function(v) 1 / (1 + 15 * exp(-0.769 * (v+34)) * ((1 -
exp(-0.05*(v+6)/0.11 * v + 0.66))))

Berend