Skip to content

Commit

Permalink
* math.c (math_atanh): Fix bug for Math.atanh(+/-1). It now returns +…
Browse files Browse the repository at this point in the history
…-Infinity. [ruby-core:26028]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
marcandre committed Oct 10, 2009
1 parent 8571bdb commit 243400f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sat Oct 10 14:55:55 2009 Marc-Andre Lafortune <[email protected]>

* 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 <[email protected]>

* thread.c (rb_threadptr_execute_interrupts_rec, rb_threadptr_raise):
Expand Down
1 change: 0 additions & 1 deletion math.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 243400f

Please sign in to comment.