Sha256: 7af365cad7b2f8cd05749298ca3d3d20b5619d240200ff64f9909f8879596d79

Contents?: true

Size: 244 Bytes

Versions: 6

Compression:

Stored size: 244 Bytes

Contents

module Dydx
  module Algebra
    module Set
      Symbol.class_eval do
        include Helper

        def differentiate(sym=:x)
          self == sym ? _(1) : _(0)
        end
        alias_method :d, :differentiate
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dydx-0.0.6 lib/dydx/algebra/set/symbol.rb
dydx-0.0.5 lib/dydx/algebra/set/symbol.rb
dydx-0.0.4 lib/dydx/algebra/set/symbol.rb
dydx-0.0.3 lib/dydx/algebra/set/symbol.rb
dydx-0.0.2 lib/dydx/algebra/set/symbol.rb
dydx-0.0.1 lib/dydx/algebra/set/symbol.rb