Page 1 of 1

Complex number in NEURON

Posted: Mon Apr 28, 2014 1:21 am
by dragon88hj
Dear,

I need to use complex number (j) for some calculations in NEURON, but i can't find the way to use complex number.

sqrt(-1), (-1)^(1/2) is not working.

Is there any way to use the complex number in NEURON hoc programming?

Or how about the VERBATIM Block with <complex.h> in NMODL environment?

Re: Complex number in NEURON

Posted: Mon Apr 28, 2014 3:31 pm
by ted
dragon88hj wrote:I need to use complex number (j) for some calculations in NEURON, but i can't find the way to use complex number.
All variables in hoc are real valued. If you need complex arithmetic with anything like "convenient" notation, suggest you use Python.