Return the algebraic sum of the input. The algebraic sum of two real scalars x and y is: x + y - x * y
For one vector argument, apply the algebraic sum to all of elements of the vector. (The algebraic sum is associative.) For one two-dimensional matrix argument, return a vector of the algebraic sum of each column.
For two vectors or matrices of identical dimensions, or for one scalar and one vector or matrix argument, return the pair-wise algebraic sum.