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