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 6: | Line 6: | ||
!usage !! evaluation !! description | !usage !! evaluation !! description | ||
|- | |- | ||
|''' | |'''<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'' | | ''x'' can be any type<br>''r'' has same type as ''x'' | ||
|- | |- | ||
|'''<code>exp(<var>x</var>, <var>y</var>)</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> | |||
| ''x'' can be any type, ''y<sub>S</sub> must be a scalar<br>''r'' has same type as ''x'' | |||
|- | |- | ||
|} | |} |
Revision as of 15:57, 6 April 2011
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 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 x
result[i] = yS ^ x[i]
exp(xS, y)
result[i] = y[i] ^ xS
exp(x, y)
result[i] = y[i] ^ x[i]