Sha256: 126ca07e045cf7383e7c5d76f347f60ca8fc6881a7191b7e5b79d0134fb95d73

Contents?: true

Size: 347 Bytes

Versions: 17

Compression:

Stored size: 347 Bytes

Contents

module Dydx
  module Algebra
    module Set
      class Log < Base
        attr_accessor :f

        def initialize(f)
          @f = f
        end

        def differentiate(sym=:x)
          f.d(sym) / (f)
        end
        alias_method :d, :differentiate

        def to_s
          "log( #{f.to_s} )"
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dydx-0.1.31 lib/dydx/algebra/set/log.rb
dydx-0.1.3 lib/dydx/algebra/set/log.rb
dydx-0.1.29 lib/dydx/algebra/set/log.rb
dydx-0.1.28 lib/dydx/algebra/set/log.rb
dydx-0.1.25 lib/dydx/algebra/set/log.rb
dydx-0.1.2 lib/dydx/algebra/set/log.rb
dydx-0.1.1 lib/dydx/algebra/set/log.rb
dydx-0.1.0 lib/dydx/algebra/set/log.rb
dydx-0.0.9 lib/dydx/algebra/set/log.rb
dydx-0.0.8 lib/dydx/algebra/set/log.rb
dydx-0.0.7 lib/dydx/algebra/set/log.rb
dydx-0.0.6 lib/dydx/algebra/set/log.rb
dydx-0.0.5 lib/dydx/algebra/set/log.rb
dydx-0.0.4 lib/dydx/algebra/set/log.rb
dydx-0.0.3 lib/dydx/algebra/set/log.rb
dydx-0.0.2 lib/dydx/algebra/set/log.rb
dydx-0.0.1 lib/dydx/algebra/set/log.rb