Programmer Guide/SPU Reference/ABS: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 9: Line 9:
;Out:
;Out:
:{|class=einrahmen
:{|class=einrahmen
|<var>Y</var>|same type as <var>A</var>
|<var>Y</var>||same type as <var>A</var>
|}
|}
;Function:
;Function:

Revision as of 09:15, 2 May 2011

Absolute value.

[SPU ABS A OUT Y]

{class="keinrahmen"

In
A number or vector
Out
Y same type as A
Function
if A is a number Y = |A|
if A is a vector Y[i] = |A[i]|

Navigation menu

Personal tools