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