fork download
  1. import numpy
  2.  
  3. x = numpy.array([1.0, 2.0, 3.0], dtype=object)
  4.  
  5. print(numpy.exp(x))
Runtime error #stdin #stdout #stderr 0.24s 39772KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
AttributeError: 'float' object has no attribute 'exp'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "./prog.py", line 5, in <module>
TypeError: loop of ufunc does not support argument 0 of type float which has no callable exp method