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