Sha256: 60b42d9d983ec09b546cc9ce92f8bc203e80c6b7a54315478f29bab65a9b4c77

Contents?: true

Size: 297 Bytes

Versions: 14

Compression:

Stored size: 297 Bytes

Contents

module Dydx
  module Algebra
    module Set
      class Sin < Base
        attr_accessor :x

        def initialize(x)
          @x = x
        end

        def to_s
          "sin( #{x.to_s} )"
        end

        def d(sym=:x)
          cos(x) * x.d(sym)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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