From daa90738c440c1ecac2d68c43991171af4e972dd Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 26 Aug 2014 00:25:27 +0000 Subject: [PATCH] * lib/mathn.rb: removed commented-out code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/mathn.rb | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe213fa14b..82d6bbd2e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 26 09:25:03 2014 SHIBATA Hiroshi + + * lib/mathn.rb: removed commented-out code. + Mon Aug 25 20:15:50 2014 Masaki Suketa * ext/win32ole/win32ole.c(fole_s_connect, fole_initialize): raise a diff --git a/lib/mathn.rb b/lib/mathn.rb index aae4620c3f..b18a0edb25 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -226,14 +226,8 @@ module Math def sqrt(a) if a.kind_of?(Complex) abs = sqrt(a.real*a.real + a.imag*a.imag) -# if not abs.kind_of?(Rational) -# return a**Rational(1,2) -# end x = sqrt((a.real + abs)/Rational(2)) y = sqrt((-a.real + abs)/Rational(2)) -# if !(x.kind_of?(Rational) and y.kind_of?(Rational)) -# return a**Rational(1,2) -# end if a.imag >= 0 Complex(x, y) else