From 2c26c1f91e5083a15d47d0dbd73fd87b0d9f4127 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: http://svn.ruby-lang.org/repos/ruby/trunk@25279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ math.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 17a01898d..5b67901e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 10 14:55:55 2009 Marc-Andre Lafortune + + * math.c (math_atanh): Fix bug for Math.atanh(+/-1). It now returns + +-Infinity. [ruby-core:26028] + Sat Oct 10 14:09:40 2009 Marc-Andre Lafortune * thread.c (rb_threadptr_execute_interrupts_rec, rb_threadptr_raise): diff --git a/math.c b/math.c index 51caf35c5..630aa13ba 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