Project

General

Profile

Actions

Bug #2189

closed

Math.atanh(1) & Math.atanh(-1) should not raise an error

Added by marcandre (Marc-Andre Lafortune) over 14 years ago. Updated about 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-10-09 trunk 25274) [x86_64-darwin10.0.0]
Backport:
[ruby-core:26028]

Description

=begin
Regression caught by RubySpec.

$ 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
=end


Files

pole.diff (3.79 KB) pole.diff marcandre (Marc-Andre Lafortune), 11/01/2009 12:54 PM

Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #368: 境界における Math.atanh 等の動作Closednaruse (Yui NARUSE)07/28/2008Actions
Related to Ruby master - Bug #2756: Issues with Math and Complex behavior on 1.9Rejectedmrkn (Kenta Murata)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0