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

  
acos

【目的】
acos - 逆余弦
【形式】
y = acos(x)                      Y = acos(X)
   (Real   |Real|Complex) y;        Array Y;
   (Integer|Real|Complex) x;        Array X;
【詳細】
acos(x)は,スカラ型(整数, 実数, 複素数) x の逆余弦を求める。 角度はラジアンで計算される。x が実数のとき, $ -1 ¥leq x ¥leq 1$の範囲に対し,acos(x) は $ 0 ¥leq ¥mathop{¥rm acos}¥nolimits(x) ¥leq ¥pi $の範囲の実数となる。 acos(X)は,配列 X の各成分の逆余弦からなる配列 Y を求める。 Y の大きさは X の大きさと同じ。
【算法】
i = (0,1)
acos(z) = - i*log(z + i*sqrt(1 - z*z))
【例題】
>> y = acos(0.5)
y = 1.0472
範囲 -1 <= x <= 1 のacos(x)のグラフを表示する。
>> x = [-1:0.05:1];
>> mgplot(1, x, acos(x), {"acos(x)"});
【参照】
asin(2.12), atan(2.14), asinh(2.13), acosh(2.4), atanh(2.16)


Masanobu KOGA 平成11年10月2日