Sha256: 0a2e8801e8f14fe5178ad84b10a8d1e347cfa512669bf4c81beeb74b7af487bf

Contents?: true

Size: 302 Bytes

Versions: 2

Compression:

Stored size: 302 Bytes

Contents

require 'symath/definition/trig'

module SyMath
  class Definition::Tan < Definition::Trig
    def initialize()
      super(:tan)
    end
    
    def description()
      return 'tan(x) - trigonometric tangent'
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

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