Sha256: 583d09ec8687bcfc4bb650db07a2a4d14e82adc01fae3735415bc35b1ad02260

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

require 'symath/definition/trig'

module SyMath
  class Definition::Cot < Definition::Trig
    def initialize()
      super(:cot)
    end
    
    def description()
      return 'cot(x) - trigonometric cotangent'
    end

    def reduce_call(c)
      return reduce_tan_and_cot(c, 1, -1)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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