tan(z)
returns the tangent of z, where z is given in radians
# File lib/cmath.rb, line 185 def tan(z) begin if z.real? tan!(z) else sin(z) / cos(z) end rescue NoMethodError handle_no_method_error end end