Method: AppMath::C#tanh

Defined in:
lib/cnum.rb

#tanhObject

Hyperbolic tangent.



355
356
357
358
359
# File 'lib/cnum.rb', line 355

def tanh
  s = exp - (-self).exp
  c = exp + (-self).exp
  s/c
end