ADD

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

ADD

Add values of inputs a and b.

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]

Usage:

ADD a b

Inputs:
a
A number or vector.
b
A number or vector.
Outputs:
y
A number or vector (same type as a).

Navigation menu

Personal tools