Programmer Guide/Command Reference/EVAL/exp: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
Exponential function | Exponential function | ||
;Usage: This function has several usage formats where the evaluation and the type of the result depends on. The table below shows the possible usages. | ;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 !! description | !usage !! evaluation !! description | ||
Line 20: | Line 20: | ||
|'''<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''vectors<br>''r'' has same type as '' | | ''x'' must be a vector or matrix<br>''y'' must have the same type as ''x''vectors<br>''r'' has same type as ''x'' | ||
|- | |- | ||
|} | |} |
Revision as of 16:04, 6 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 description exp(x)
ri,j = e ^ xi,j x can be any type
r has same type as xexp(x, yS)
ri,j = yS ^ xi,j x can be any type, yS must be a scalar
r has same type as xexp(xS, y)
ri,j = yi,j ^ xS xS must be a scalar, y can be any type
r has same type as yexp(x, y)
ri,j = yi,j ^ xi,j x must be a vector or matrix
y must have the same type as xvectors
r has same type as x
exp(xS, y)
result[i] = y[i] ^ xS
exp(x, y)
result[i] = y[i] ^ x[i]