Yes it's true. If you want to find the opposite just add (or subtract) the number you need to reach 0, in this case +7, and then add (or subtract) +7 again... the result is the opposite. Adding (or subtracting) 2 times itself passing from negative to positive and viceversa is the same of multiplying for -1, where 1 is the neutral number in multiplication.
Answer from Huseyin78 on Stack ExchangeYes it's true. If you want to find the opposite just add (or subtract) the number you need to reach 0, in this case +7, and then add (or subtract) +7 again... the result is the opposite. Adding (or subtracting) 2 times itself passing from negative to positive and viceversa is the same of multiplying for -1, where 1 is the neutral number in multiplication.
Yes, that's true. The absolute value of a number is its distance from . With your example, we see that
is
away from
. If we choose to think that
is to the left of
, then the opposite of
is
to the right of
. That would be
.
The multiplicative identity is . The opposite of the multiplicative identity is
. Ergo multiplying by
gives the opposite of a number.
Videos
If x is your number, then what you're looking for is simply (10 - x).
edit One functional form that satisfies your updated spec is (x + y - (x * y) / 5.0). This is designed for values of x and y between 0 and 10.
X = 10 - Y where Y is input and X is output
0's opposite is 10: 10 = 10-0 1's opposite is 9: 9 = 10-1 2's opposite is 8: 8 = 10-2