Sha256: d01cb4ef1d73628617430b8da41e82701e5cc68e1558b165b3db3f9bde840484

Contents?: true

Size: 312 Bytes

Versions: 5

Compression:

Stored size: 312 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

5 entries across 5 versions & 1 rubygems

Version Path
dydx-0.2.7000001 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.2.7000000 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.41421 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.412 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.4 lib/dydx/algebra/operator/parts/symbol.rb