ruby-changes:20595
From: tadf <ko1@a...>
Date: Sat, 23 Jul 2011 21:14:55 +0900 (JST)
Subject: [ruby-changes:20595] tadf:r32643 (trunk): * lib/cmath.rb: should return a real number if possible.
tadf 2011-07-23 21:14:43 +0900 (Sat, 23 Jul 2011) New Revision: 32643 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32643 Log: * lib/cmath.rb: should return a real number if possible. Modified files: trunk/ChangeLog trunk/lib/cmath.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 32642) +++ ChangeLog (revision 32643) @@ -1,3 +1,7 @@ +Sat Jul 23 21:14:00 2011 Tadayoshi Funaba <tadf@d...> + + * lib/cmath.rb: should return a real number if possible. + Sat Jul 23 20:12:52 2011 NARUSE, Yui <naruse@r...> * test/rake/test_rake_functional.rb (setup): Use __FILE__ for the base Index: lib/cmath.rb =================================================================== --- lib/cmath.rb (revision 32642) +++ lib/cmath.rb (revision 32643) @@ -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/