next up previous contents
Next: trace Up: リファレンスマニュアル Previous: tan

  
tanh

【目的】
tanh - 双曲(線)正接
【形式】
y = tanh(x)                      Y = tanh(X)
   (Real   |Real|Complex) y;        Array Y;
   (Integer|Real|Complex) x;        Array X;
【詳細】
tanh(x)は,スカラ型(整数, 実数, 複素数) x の双曲(線)正接を求める。 角度はラジアンで計算される。 tanh(X)は,配列 X の各成分の双曲(線)正接からなる配列 Y を求める。 Y の大きさは X の大きさと同じ。
【算法】
tanh(z) = sinh(z)/cosh(z)
【例題】
>> y = tanh(0.5)
y = 0.462117
範囲 $-\pi/3 \leq x \leq \pi/3$ のtanh(x)のグラフを表示する。
>> x = [-PI/3:0.05:PI/3];
>> mgplot(1, x, tanh(x), {"tanh(x)"});
【参照】
sin(2.211), cos(2.36), tan(2.234), atanh(2.16), exp(2.61)


Masanobu KOGA 平成11年10月2日