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