import numpy as np a = complex(float('inf'), float('inf'))print(np.log(a))
Standard input is empty
(inf+0.7853981633974483j)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!