Its domain includes complex numbers.
Exponent mat lab.
Exponential values returned as a scalar vector matrix or multidimensional array.
The expm1 and log1p functions compensate for numerical round off errors in small arguments while the reallog realpow and realsqrt functions restrict the range of these functions to real numbers.
Exponentiation is right associative in scilab contrarily to matlab and octave.
Dealing with small numbers.
For complex values of x y is complex.
For real values of x in the interval inf inf y is in the interval 0 inf.
For example 2 3 4 is equal to 2 3 4 in scilab but is equal to 2 3 4 in matlab and octave.
See matrix exponentials for more information.
The exp function is an elementary function that operates element wise on arrays.
The matrix exponential can be calculated in a number of ways.
For example if you try to add a number smaller than machine precision to 1 then the result gets rounded to 1.
The matlab functions log1p and expm1 calculate log 1 x and e x 1 accurately for very small values of x.
For complex it returns the complex exponential.
The data type of y is the same as that of x.