tanh

calculate the hyperbolic tangent of given angle


Parameters

tanh angle :integer :floating :complex :rational :quantity

Returns

  • :floating
  • :complex

Examples

copy
print tanh 0 ; 0.0 print tanh 0.3 ; 0.2913126124515909 print tanh 1.0 ; 0.7615941559557649

copy
tanh to :complex [1 1] ; => 1.083923327338695+0.2717525853195117i

Related