lib/dydx/algebra/operator/parts/symbol.rb in dydx-0.1.28 vs lib/dydx/algebra/operator/parts/symbol.rb in dydx-0.1.29
- old
+ new
@@ -2,10 +2,10 @@
module Algebra
module Operator
module Parts
module Symbol
def *(x)
- if x.exponentiation? &&
+ if x.formula?(:^) &&
self == x.f
self ^ (1 + x.g)
else
super(x)