diff options
Diffstat (limited to 'lib/cmath.rb')
-rw-r--r-- | lib/cmath.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/cmath.rb b/lib/cmath.rb index 95a30c336b..5b261ed6a8 100644 --- a/lib/cmath.rb +++ b/lib/cmath.rb @@ -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 |