Does this code work?

Implement exponential of each element in vector v:
do not import numpy, however: u = exp(v)

Does this work…?


Hi @Wz111 ,

There are several places where you can test yourself the Python code with just a browser:

Regarding your question, you should check which exp() function are you using (there are several: math.exp, numpy.exp, tf.exp), and check it’s documentation to see if it support the type of the parameters you are using.

For example:

1 Like