sin(z)
returns the sine of z, where z is given in radians
# File lib/cmath.rb, line 155 def sin(z) begin if z.real? sin!(z) else Complex(sin!(z.real) * cosh!(z.imag), cos!(z.real) * sinh!(z.imag)) end rescue NoMethodError handle_no_method_error end end