Redefined to handle a Complex argument.
# File complex.rb, line 483 def tan(z) if Complex.generic?(z) tan!(z) else sin(z)/cos(z) end end
<code/>
<pre/>
<code/>and<pre/>for code samples.