POW

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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