Y = exp(X) returns the exponential for each element of array X. The function accepts both real and complex inputs. For real values of X in the interval (-Inf, Inf), exp returns real values in the interval (0,Inf). For complex values of X, exp returns complex values.