Sha256: 6ac8643fcebdf84007b1795b587f853e8d3de85690f33fdcf7116246f74286fe

Contents?: true

Size: 241 Bytes

Versions: 11

Compression:

Stored size: 241 Bytes

Contents

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

        def differentiate(sym=:x)
          self == sym ? e1 : e0
        end
        alias_method :d, :differentiate
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dydx-0.1.31 lib/dydx/algebra/set/symbol.rb
dydx-0.1.3 lib/dydx/algebra/set/symbol.rb
dydx-0.1.29 lib/dydx/algebra/set/symbol.rb
dydx-0.1.28 lib/dydx/algebra/set/symbol.rb
dydx-0.1.25 lib/dydx/algebra/set/symbol.rb
dydx-0.1.2 lib/dydx/algebra/set/symbol.rb
dydx-0.1.1 lib/dydx/algebra/set/symbol.rb
dydx-0.1.0 lib/dydx/algebra/set/symbol.rb
dydx-0.0.9 lib/dydx/algebra/set/symbol.rb
dydx-0.0.8 lib/dydx/algebra/set/symbol.rb
dydx-0.0.7 lib/dydx/algebra/set/symbol.rb