I think this works with any "complementary" functions, i.e. where you have one function that removes the effect of the other, e.g. +/-, xor/xor and i haven't tried, but i'm thinking functions like exp/log as well. So here's my contribution:
a = 5
b = 10
a = a * b (a = 50, b = 10)
b = a / b (a = 50, b = 5)
a = a / b (a = 10, b = 5)
These methods only work in theory because of limited space. I think only rickclark's method is a safe solution.