ruby-changes:11980
From: tadf <ko1@a...>
Date: Sun, 7 Jun 2009 22:47:15 +0900 (JST)
Subject: [ruby-changes:11980] Ruby:r23644 (trunk): * lib/cmath.rb (log): avoided redundant expression.
tadf 2009-06-07 22:46:56 +0900 (Sun, 07 Jun 2009) New Revision: 23644 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23644 Log: * lib/cmath.rb (log): avoided redundant expression. Modified files: trunk/ChangeLog trunk/lib/cmath.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 23643) +++ ChangeLog (revision 23644) @@ -1,3 +1,7 @@ +Sun Jun 7 22:44:20 2009 Tadayoshi Funaba <tadf@d...> + + * lib/cmath.rb (log): avoided redundant expression. + Fri Jun 5 07:12:32 2009 Yukihiro Matsumoto <matz@r...> * lib/mkmf.rb (#link_command): should dup CONFTEST_C which is Index: lib/cmath.rb =================================================================== --- lib/cmath.rb (revision 23643) +++ lib/cmath.rb (revision 23644) @@ -38,8 +38,7 @@ if z.real? and z >= 0 and (b.nil? or b >= 0) log!(*args) else - r, theta = z.polar - a = Complex(log!(r.abs), theta) + a = Complex(log!(z.abs), z.arg) if b a /= log(b) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/