[前][次][番号順一覧][スレッド一覧]

ruby-changes:13503

From: marcandre <ko1@a...>
Date: Sat, 10 Oct 2009 14:56:22 +0900 (JST)
Subject: [ruby-changes:13503] Ruby:r25279 (trunk): * math.c (math_atanh): Fix bug for Math.atanh(+/-1). It now returns +-Infinity.

marcandre	2009-10-10 14:56:07 +0900 (Sat, 10 Oct 2009)

  New Revision: 25279

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25279

  Log:
    * math.c (math_atanh): Fix bug for Math.atanh(+/-1). It now returns +-Infinity. [ruby-core:26028]

  Modified files:
    trunk/ChangeLog
    trunk/math.c

Index: math.c
===================================================================
--- math.c	(revision 25278)
+++ math.c	(revision 25279)
@@ -298,7 +298,6 @@
     d0 = RFLOAT_VALUE(x);
     d = atanh(d0);
     domain_check(d0, d, "atanh");
-    infinity_check(x, d, "atanh");
     return DBL2NUM(d);
 }
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25278)
+++ ChangeLog	(revision 25279)
@@ -1,3 +1,8 @@
+Sat Oct 10 14:55:55 2009  Marc-Andre Lafortune  <ruby-core@m...>
+
+	* 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  <ruby-core@m...>
 
 	* thread.c (rb_threadptr_execute_interrupts_rec, rb_threadptr_raise):

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]