Programmer Guide/SPU Reference/POW: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 18:31, 18 November 2010

POW

Usage:

POW A B

Inputs:
A number or vector
B number or vector
Outputs:
Y number or vector (same type as A)
Function:

Compute A to the power of B.

if A and B are numbers: Y = AB
if A is a vector and B a number: Y[i] = A[i]B
if A and B are vectors: Y[i] = A[i]B[i]

If A|A[i] is negative, B|B[i] must be an integer (automatic truncation of B)

If B|B[i] is negative, A|A[i] must be a nonzero value (otherwise result is set to 0)

Navigation menu

Personal tools