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.
See also: algebraic_product, bounded_difference, bounded_sum, drastic_product, drastic_sum, einstein_product, einstein_sum, hamacher_product, hamacher_sum.