Sha256: c55cf4e4d4f7f047d70bc32e16ab26dc06ac0090012c16d85a2675b98dfda199

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 Bytes

Contents

require 'symath/definition/function'

module SyMath
  class Definition::Arccsc < Definition::Function
    def initialize()
      super(:arccsc)

      @reductions = {
        -2.to_m           => -:pi/6,
        -fn(:sqrt, 2)     => -:pi/4,
        -2*fn(:sqrt, 3)/3 => -:pi/3,
        -1.to_m           => -:pi/2,
        1.to_m            => :pi/2,
        2*fn(:sqrt, 3)/3  => :pi/3,
        fn(:sqrt, 2)      => :pi/4,
        2.to_m            => :pi/6,
      }
    end

    def description()
      return 'arccsc(x) - inverse trigonometric cosecant'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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