Page 1 of 1

math operation

Posted: Fri Nov 15, 2019 5:41 am
by elenamerendino
hi,can I use simple math operations in neuron without import any module?
because i have a sintax error in this line: stim1.interval=(10000\xi)

Re: math operation

Posted: Fri Nov 15, 2019 8:03 am
by ted
a\b
triggers an error message because \ is not recognized as an operator. Python thinks it is a line continuation mark. hoc doesn't recognize it at all. Search the Programmer's Reference for the term operator, or read Python's own reference materials.