Programmer Guide/Command Reference/EVAL/exp: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
!usage !! evaluation !! data type of arguments !! data type of result ''r''
!usage !! evaluation !! data type of arguments !! data type of result ''r''
|-
|-
|'''<code>exp(<var>x</var>)</code>'''
|<code>exp(<var>x</var>)</code>
|''r''<sub>i,j</sub> = '''e''' ^ ''x''<sub>i,j</sub>
|''r''<sub>i,j</sub> = '''e''' ^ ''x''<sub>i,j</sub>
| ''x'' can be any type
| ''x'' can be any type
| same type as ''x''
| same type as ''x''
|-
|-
|'''<code>exp(<var>x</var>, <var>y</var><sub>S</sub>)</code>
|<code>exp(<var>x</var>, <var>y</var><sub>S</sub>)</code>
|''r''<sub>i,j</sub> = ''y''<sub>S</sub> ^ ''x''<sub>i,j</sub>
|''r''<sub>i,j</sub> = ''y''<sub>S</sub> ^ ''x''<sub>i,j</sub>
| ''x'' can be any type<br>''y''<sub>S</sub> must be a scalar
| ''x'' can be any type<br>''y''<sub>S</sub> must be a scalar
| same type as ''x''
| same type as ''x''
|-
|-
|'''<code>exp(<var>x</var><sub>S</sub>, <var>y</var>)</code>
|<code>exp(<var>x</var><sub>S</sub>, <var>y</var>)</code>
|''r''<sub>i,j</sub> = ''y''<sub>i,j</sub> ^ ''x''<sub>S</sub>
|''r''<sub>i,j</sub> = ''y''<sub>i,j</sub> ^ ''x''<sub>S</sub>
| ''x''<sub>S</sub> must be a scalar<br>''y'' can be any type
| ''x''<sub>S</sub> must be a scalar<br>''y'' can be any type
| same type as ''y''
| same type as ''y''
|-
|-
|'''<code>exp(<var>x</var>, <var>y</var>)</code>
|<code>exp(<var>x</var>, <var>y</var>)</code>
|''r''<sub>i,j</sub> = ''y''<sub>i,j</sub> ^ ''x''<sub>i,j</sub>
|''r''<sub>i,j</sub> = ''y''<sub>i,j</sub> ^ ''x''<sub>i,j</sub>
| ''x'' must be a vector or matrix<br>''y'' must have the same type as ''x''
| ''x'' must be a vector or matrix<br>''y'' must have the same type as ''x''
Line 27: Line 27:
|-
|-
|}
|}
:Note: The [[../#Operators|operator prefix '?']] combined with the [[../#Operators|power operator '^']] can be used instead of this function.
;See also: [[../log|log, ln, lg]], [[../log2lin|lin2log, log2lin]]


Note: Since its implementation, the [[Programmer_Guide/Command_Reference/EVAL#Operators|operator prefix '?']] combined with the [[Programmer_Guide/Command_Reference/EVAL#Operators|power operator '^']] can be used instead of this function.  
[[../#Functions|<function list>]]
 
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]

Latest revision as of 10:39, 21 April 2011

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) ri,j = e ^ xi,j x can be any type same type as x
exp(x, yS) ri,j = yS ^ xi,j x can be any type
yS must be a scalar
same type as x
exp(xS, y) ri,j = yi,j ^ xS xS must be a scalar
y can be any type
same type as y
exp(x, y) ri,j = yi,j ^ xi,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

<function list>

Navigation menu

Personal tools