Besides, the operations are all wrong and only work for trivial values of the exponents, like 0, 1 and 2.