Sha256: 698059a3fc0f0d66f78448b193fb002c81458aeaf2e24572d047c3883d197c32

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

require 'symath/definition/trig'

module SyMath
  class Definition::Sin < Definition::Trig
    def initialize()
      super(:sin)
    end

    def description()
      return 'sin(x) - trigonometric sine'
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

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