From: Tanaka Akira Date: 2009-10-10T18:34:02+09:00 Subject: [ruby-core:26033] Re: [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error In article <4ad02158d27ef_9875c5cb1e486@redmine.ruby-lang.org>, Marc-Andre Lafortune writes: > $ rubydev -v -e 'p Math.atanh(1)' > ruby 1.9.2dev (2009-10-09 trunk 25274) [x86_64-darwin10.0.0] > -e:1:in `atanh': Numerical argument out of domain - atanh (Errno::EDOM) > from -e:1:in `
' > $ ruby187 -v -e 'p Math.atanh(1)' > ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] > Infinity > > Fixed in r25279 The fix causes make test-all fails. http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20091010T152500.log.txt.gz | 6) Failure: | test_atanh(TestMath) [/home/akr/chkbuild/tmp/build/ruby-trunk/20091010T152500/ruby/test/ruby/test_math.rb:102]: | [Errno::EDOM, Errno::ERANGE] expected but nothing was raised. I'm not sure the right result is Errno::EDOM, Errno::ERANGE or Infinity. But it was EDOM on my machine long time. So it seems incompatible for me. ruby-1.8.0(2003-08-04) # ruby-1.8.1(2003-12-25) # ruby-1.8.2(2004-12-25) # ruby-1.8.3(2005-09-21) # ruby-1.8.4(2005-12-24) # ruby-1.8.5(2006-08-25) # ruby-1.8.5p52(2007-06-07) # ruby-1.8.5p113(2007-09-23) # ruby-1.8.5p115(2008-03-03) # ruby-1.8.5p231(2008-06-20) # ruby-1.8.6p0(2007-03-13) # ruby-1.8.6p36(2007-06-07) # ruby-1.8.6p110(2007-09-23) # ruby-1.8.6p111(2007-09-24) # ruby-1.8.6p114(2008-03-03) # ruby-1.8.6p230(2008-06-20) # ruby-1.8.6p287(2008-08-11) # ruby-1.8.6p368(2009-03-31) # ruby-1.8.6p383(2009-08-04) # ruby-1.8.6head(2009-09-09p388) # ruby-1.8.7p0(2008-05-31) # ruby-1.8.7p17(2008-06-09) # ruby-1.8.7p22(2008-06-20) # ruby-1.8.7p72(2008-08-11) # ruby-1.8.7p160(2009-04-08) # ruby-1.8.7p174(2009-06-12) # ruby-1.8.7head(2009-09-11p202) # ruby-1.8(2009-10-07r25247) Infinity ruby-1.8-pth(2008-07-09r17625) # ruby-1.9.1p0(2009-01-30r21907) # ruby-1.9.1p129(2009-05-12) # ruby-1.9.1p243(2009-07-16) # ruby-1.9(2009-09-24r25067) # ./ruby(2009-10-10r25284) Infinity % ./ruby -v ruby 1.9.2dev (2009-10-10 trunk 25284) [i686-linux] % uname -a Linux nute 2.6.26-1-486 #1 Fri Mar 13 17:25:45 UTC 2009 i686 GNU/Linux % lsb_release -idrc Distributor ID: Debian Description: Debian GNU/Linux 5.0.2 (lenny) Release: 5.0.2 Codename: lenny -- Tanaka Akira