In NumPy, you can calculate the exponential of a complex number using numpy.exp. The exponential of a complex number z can be represented as exp(z) = exp(x) * (cos(y) + 1j * sin(y)), where x and y are the real and imaginary parts of the complex number z, respectively.