# exp

< Programmer Guide | Command Reference | EVAL

Jump to navigation
Jump to search
Exponential function

- Usage
- This function has several usage formats where the evaluation and the type of the result
*r*depends on. The table below shows the possible usages and data types.

usage evaluation data type of arguments data type of result *r*`exp(`

`x`)*r*_{i,j}=**e**^*x*_{i,j}*x*can be any typesame type as *x*`exp(`

`x`,`y`_{S})*r*_{i,j}=*y*_{S}^*x*_{i,j}*x*can be any type*y*_{S}must be a scalarsame type as *x*`exp(`

`x`_{S},`y`)*r*_{i,j}=*y*_{i,j}^*x*_{S}*x*_{S}must be a scalar*y*can be any typesame type as *y*`exp(`

`x`,`y`)*r*_{i,j}=*y*_{i,j}^*x*_{i,j}*x*must be a vector or matrix*y*must have the same type as*x*same type as *x*and*y*

- Note: The operator prefix '?' combined with the power operator '^' can be used instead of this function.
- See also
- log, ln, lg, lin2log, log2lin