2008-10-27, 12:18 PM
It's not cheating though, it's just practical maths.
a += b
b = a - b
a -= b
a *= b
b = a / b
a /= b
a ^= b
b ^= a
a ^= b
Hell, even taking the integral and the derivative works with this method, just way less efficient.
a += b
b = a - b
a -= b
a *= b
b = a / b
a /= b
a ^= b
b ^= a
a ^= b
Hell, even taking the integral and the derivative works with this method, just way less efficient.

