Sha256: 4db4c6b5b9bc1f6cbc003e7ee1c0988fe18fea8665c381b04100d4af9d6ae7e1

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

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

        def initialize(f)
          @f = f
        end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dydx-0.1.31 lib/dydx/algebra/set/log10.rb