From: Robert Klemme Date: 2008-03-31T21:34:34+09:00 Subject: Re: Is it me or Math::sqrt? 2008/3/31, Phillip Gawlowski : > Yeah, the mistake was clearly mine. Fixing my assumption helped with > fixing the bug. Though, this time the bug was a PBKAC. > > A hint should've been that I needed Fixnum#abs to properly calculate the > square root required by the algorithm. Yes, that was what got me wondering. > Which shows that flying solo has its dangers. Often it's helpful to try parts of an algorithm in IRB. That way you easily find bugs as this one. :-) Kind regards robert -- use.inject do |as, often| as.you_can - without end