SyntaxFix
Write A Post
Hire A Developer
Questions
It calculates ex for each x in your list where e is Euler's number (approximately 2.718). In other words, np.exp(range(5)) is similar to [math.e**x for x in range(5)].
np.exp(range(5))
[math.e**x for x in range(5)]