I want to essentially be able to have a function swap
where I can enter 2 arguments. The first would be the central point, the point of inversion so to speak, while the second would be the number I want to find the opposite of, with respect to the point.
So if I put in swap(5,2)
it would return 8
.
The idea being that 5-2=3
then 5+3=8
.