1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/cmath.rb (log): avoided redundant expression.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2009-06-07 13:46:56 +00:00
parent 2a0342a442
commit 27174800d4
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Jun 7 22:44:20 2009 Tadayoshi Funaba <tadf@dotrb.org>
* lib/cmath.rb (log): avoided redundant expression.
Fri Jun 5 07:12:32 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/mkmf.rb (#link_command): should dup CONFTEST_C which is

View file

@ -38,8 +38,7 @@ module CMath
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