EXP Function

EXP (matrix) ;

The EXP function applies the exponential function to every element of the argument matrix. The exponential is the natural number $e$ raised to the indicated power. For example, the following statements compute the exponentials of several numbers:

b = {1 2 3 4};
a = exp(b);
print a;

Figure 24.123: Exponential of Several Numbers

a
2.7182818 7.3890561 20.085537 54.59815


If you want to compute the exponential of a matrix, you can call the EXPMATRIX function in the IMLMLIB module library.