Sha256: 5930861689342829190c98721170d46626b35883ac822588370219dcf4415916

Contents?: true

Size: 238 Bytes

Versions: 6

Compression:

Stored size: 238 Bytes

Contents

module Danica
  class Cos < Operator
    variables :variable

    def to_f
      Math.cos(variable.to_f)
    end

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

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



Version data entries

6 entries across 6 versions & 1 rubygems

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