Redefined to handle a Complex argument.
Source Code
# File complex.rb, line 454 def exp(z) if Complex.generic?(z) exp!(z) else Complex(exp!(z.real) * cos!(z.image), exp!(z.real) * sin!(z.image)) end end
Redefined to handle a Complex argument.
# File complex.rb, line 454 def exp(z) if Complex.generic?(z) exp!(z) else Complex(exp!(z.real) * cos!(z.image), exp!(z.real) * sin!(z.image)) end end
<code/>and<pre/>for code samples.