lib/dydx/algebra/operator/parts/num.rb in dydx-0.0.2 vs lib/dydx/algebra/operator/parts/num.rb in dydx-0.0.3
- old
+ new
@@ -42,9 +42,11 @@
end
def ^(x)
if (n == 0) || (n == 1)
self
+ elsif x.is_a?(Num)
+ _(n ^ x.n)
else
super(x)
end
end
end