Sha256: da7d1ff81b1f6fa154f70097a81880bb7a894d7a1cff0a6b69b32b665bbf92c1
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
require 'symath/definition/function' module SyMath class Definition::Arccot < Definition::Function def initialize() super(:arccot) @reductions = { -fn(:sqrt, 3) => 5*:pi/6, -1.to_m => 3*:pi/4, -fn(:sqrt, 3)/3 => 2*:pi/3, 0.to_m => :pi/2, fn(:sqrt, 3)/3 => :pi/3, 1.to_m => :pi/4, fn(:sqrt, 3) => :pi/6, } end def description() return 'arccot(x) - inverse trigonometric cotangent' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
symath-0.1.1 | lib/symath/definition/arccot.rb |
symath-0.1.0 | lib/symath/definition/arccot.rb |