tanh(z)
returns the hyperbolic tangent of z, where z is given in radians
# File lib/cmath.rb, line 229 def tanh(z) begin if z.real? tanh!(z) else sinh(z) / cosh(z) end rescue NoMethodError handle_no_method_error end end