Added support for negative pi and e sto solver