ruby-changes:16702
From: mame <ko1@a...>
Date: Wed, 21 Jul 2010 12:43:58 +0900 (JST)
Subject: [ruby-changes:16702] Ruby:r28698 (trunk): * lib/cmath.rb (CMath#cbrt): cbrt should accept a negative real
mame 2010-07-21 12:43:43 +0900 (Wed, 21 Jul 2010) New Revision: 28698 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28698 Log: * lib/cmath.rb (CMath#cbrt): cbrt should accept a negative real numbers. [ruby-core:31234] Modified files: trunk/ChangeLog trunk/lib/cmath.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 28697) +++ ChangeLog (revision 28698) @@ -1,3 +1,8 @@ +Wed Jul 21 12:39:15 2010 Yusuke Endoh <mame@t...> + + * lib/cmath.rb (CMath#cbrt): cbrt should accept a negative real + numbers. [ruby-core:31234] + Wed Jul 21 12:31:30 2010 Marc-Andre Lafortune <ruby-core@m...> * lib/uri/common.rb: Have URI() and URI.join accept URI objects in @@ -15,6 +20,7 @@ Tue Jul 20 11:27:18 2010 Evan Phoenix <evan@r...> * gem_prelude.rb: Pull in rubygem's custom require + * lib/rubygems.rb: Handle always having custom require available Tue Jul 20 18:39:18 2010 Nobuyoshi Nakada <nobu@r...> Index: lib/cmath.rb =================================================================== --- lib/cmath.rb (revision 28697) +++ lib/cmath.rb (revision 28698) @@ -85,7 +85,7 @@ end def cbrt(z) - if z.real? and z >= 0 + if z.real? cbrt!(z) else Complex(z) ** (1.0/3) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/