Sha256: 7a0c03c578463374d64fdefdbbb74a5ea105b74abb805ddb1aac3c2258803a72

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

module Dydx
  module Algebra
    module Operator
      module Parts
        module Symbol
          def *(x)
            if x.formula?(:^) &&
              self == x.f

              self ^ (1 + x.g)
            else
              super(x)
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dydx-0.1.314 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.31 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.3 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.29 lib/dydx/algebra/operator/parts/symbol.rb