lib/dydx/algebra/operator/parts/base.rb in dydx-0.1.3 vs lib/dydx/algebra/operator/parts/base.rb in dydx-0.1.4

- old
+ new

@@ -1,12 +1,12 @@ module Dydx module Algebra module Operator module Parts module Base - %w(+ * ^).map(&:to_sym).each do |operator| + %w(+ * **).map(&:to_sym).each do |operator| define_method(operator) do |x| - ::Algebra::Formula.new(self, x, operator.to_sym) + ::Algebra::Formula.new(operator.to_sym, self, x) end end end end end