SUB

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 14: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

SUB

Usage:

SUB A B

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

Subtract input B from A.

If A and B are numbers: Y = A-B
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]

Navigation menu

Personal tools