Sha256: f944a2bf0eb2fb9e1f1a33d62350036ba8f5ca1faeb1bb4a8668eb5d4dde14f5

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

require 'symath/definition/trig'

module SyMath
  class Definition::Cos < Definition::Trig
    def initialize()
      super(:cos)
    end
    
    def description()
      return "cos(x) - trigonometric cosine"
    end

    def reduce_call(c)
      return reduce_sin_and_cos(c, 1)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symath-0.1.1 lib/symath/definition/cos.rb
symath-0.1.0 lib/symath/definition/cos.rb