Sha256: 908532436f4551122a6928526fe3d87b78f9317ef97b9f436f8edbc54887787b

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

module Dydx
  module Algebra
    module Set
      class Num < Base
        attr_accessor :n

        def initialize(n)
          @n = n
        end

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

        def to_s
          @n.to_s
        end

        def ==(x)
          to_s == x.to_s
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dydx-0.1.28 lib/dydx/algebra/set/num.rb
dydx-0.1.25 lib/dydx/algebra/set/num.rb
dydx-0.1.2 lib/dydx/algebra/set/num.rb
dydx-0.1.1 lib/dydx/algebra/set/num.rb
dydx-0.1.0 lib/dydx/algebra/set/num.rb
dydx-0.0.9 lib/dydx/algebra/set/num.rb
dydx-0.0.8 lib/dydx/algebra/set/num.rb
dydx-0.0.7 lib/dydx/algebra/set/num.rb