ruby-changes:20713
From: tadf <ko1@a...>
Date: Sat, 30 Jul 2011 23:53:25 +0900 (JST)
Subject: [ruby-changes:20713] tadf:r32761 (ruby_1_9_3): * lib/cmath.rb (cbrt): should return a real number if possible.
tadf 2011-07-30 23:53:14 +0900 (Sat, 30 Jul 2011) New Revision: 32761 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32761 Log: * lib/cmath.rb (cbrt): should return a real number if possible. Modified files: branches/ruby_1_9_3/ChangeLog branches/ruby_1_9_3/lib/cmath.rb Index: ruby_1_9_3/ChangeLog =================================================================== --- ruby_1_9_3/ChangeLog (revision 32760) +++ ruby_1_9_3/ChangeLog (revision 32761) @@ -1,3 +1,7 @@ +Sat Jul 30 23:51:44 2011 Tadayoshi Funaba <tadf@d...> + + * lib/cmath.rb (cbrt): should return a real number if possible. + Sat Jul 30 23:48:04 2011 Tadayoshi Funaba <tadf@d...> * ext/date/date_core.c: an issue that is same as [ruby-dev:44071]. Index: ruby_1_9_3/lib/cmath.rb =================================================================== --- ruby_1_9_3/lib/cmath.rb (revision 32760) +++ ruby_1_9_3/lib/cmath.rb (revision 32761) @@ -147,7 +147,7 @@ ## # returns the principal value of the cube root of +z+ def cbrt(z) - Complex(z) ** (1.0/3) + z ** (1.0/3) end ## -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/