Synonym for both addition and subtraction

53 Views Asked by At

I'm not sure if this is the best place to ask, but will try anyway. Is there a term that can mean either subtraction or addition?

I'm working with a program that adds/subtracts up several numbers in the fibonacci sequence in one variable depending on whether the item is even or odd, and was wondering if there was a catch-all term that can mean both.

That way I can write something like: "The program blanks a sequence of fibonacci numbers, subtracting odd values and adding even ones."

1

There are 1 best solutions below

0
On

The term “addition” includes “subtraction” (as addition of an additive inverse), too.

So your final sentence may be:

“The program adds a sequence of Fibonacci numbers, odd values with minus sign.”