Sha256: 212dc736127fdb5bb7a940399d5a64f458372d3e699640e13e6ed8395bda33a3

Contents?: true

Size: 237 Bytes

Versions: 6

Compression:

Stored size: 237 Bytes

Contents

module Danica
  class Sin < Operator
    variables :variable

    def to_f
      Math.sin(variable.to_f)
    end

    def to_tex
      "sin(#{variable.to_tex})"
    end

    def to_gnu
      "sin(#{variable.to_gnu})"
    end
  end
end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
danica-2.2.1 lib/danica/sin.rb
danica-2.2.0 lib/danica/sin.rb
danica-2.1.1 lib/danica/sin.rb
danica-2.1.0 lib/danica/sin.rb
danica-2.0.6 lib/danica/sin.rb
danica-2.0.5 lib/danica/sin.rb