module Dydx module Algebra module Operator module Parts module Symbol def *(x) if x.exponentiation? && self == x.f self ^ (1 + x.g) else super(x) end end def /(x) if x.exponentiation? && self == x.f self ^ (1 - x.g) else super(x) end end end end end end end