Sha256: 32b08dfca1059cedb1bfbaed0a78ffb7e3b032ae8d0c552b8bf15f4338bab22f

Contents?: true

Size: 313 Bytes

Versions: 10

Compression:

Stored size: 313 Bytes

Contents

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dydx-0.1.28 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.25 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.2 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.1 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.1.0 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.0.9 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.0.8 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.0.7 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.0.6 lib/dydx/algebra/operator/parts/symbol.rb
dydx-0.0.5 lib/dydx/algebra/operator/parts/symbol.rb