Methods

Class Index [+]

Quicksearch

Flt::Trigonometry::Support

end

Public Instance Methods

iarccot(x, unity) click to toggle source
     # File lib/flt/trigonometry.rb, line 584
584:       def iarccot(x, unity)
585:         xpow = unity / x
586:         n = 1
587:         sign = 1
588:         sum = 0
589:         loop do
590:             term = xpow / n
591:             break if term == 0
592:             sum += sign * (xpow/n)
593:             xpow /= x*x
594:             n += 2
595:             sign = -sign
596:         end
597:         sum
598:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.