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?
Complex number in NEURON
-
- Site Admin
- Posts: 6303
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Complex number in NEURON
All variables in hoc are real valued. If you need complex arithmetic with anything like "convenient" notation, suggest you use Python.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.