Redefined to handle a Complex argument.
# File complex.rb, line 516 def log(z) if Complex.generic?(z) and z >= 0 log!(z) else r, theta = z.polar Complex(log!(r.abs), theta) end end
<code/>
<pre/>
<code/>and<pre/>for code samples.