From 243400fbedab5b1701451f5a92c2453e400547bc Mon Sep 17 00:00:00 2001 From: marcandre Date: Sat, 10 Oct 2009 05:56:07 +0000 Subject: * math.c (math_atanh): Fix bug for Math.atanh(+/-1). It now returns +-Infinity. [ruby-core:26028] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- math.c | 1 - 1 file changed, 1 deletion(-) (limited to 'math.c') diff --git a/math.c b/math.c index 51caf35c5d..630aa13baa 100644 --- a/math.c +++ b/math.c @@ -298,7 +298,6 @@ math_atanh(VALUE obj, VALUE x) d0 = RFLOAT_VALUE(x); d = atanh(d0); domain_check(d0, d, "atanh"); - infinity_check(x, d, "atanh"); return DBL2NUM(d); } -- cgit v1.2.3