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