Complex number in NEURON

The basics of how to develop, test, and use models.
Post Reply
dragon88hj
Posts: 2
Joined: Mon Mar 24, 2014 11:45 pm

Complex number in NEURON

Post 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?
ted
Site Admin
Posts: 5795
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Complex number in NEURON

Post 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.
Post Reply