change equation_scientific for more idiomatic python and to accept vectors for var



I integrated the changes proposed by Marmaduke. It seems to work with the interface (I created a stimulus region to test)