<< cos Trigonometry cosh >>

Scilab Help >> Elementary Functions > Trigonometry > cosd

cosd

要素毎の余弦(引数の単位:度)

呼び出し手順

y=cosd(x)

引数

x

実数ベクトル/行列

説明

ベクトルまたは行列xに角度(単位:度)が 指定されると, cosd(x)は各要素の余弦となります. 結果は [-1 1]の範囲となります. 入力要素がn*90 (nは奇数の整数)に等しい 場合,結果は完全にゼロとなります.

サンプル

cosd([0 30 45 60 90 360])
1 ./ cosd([-90 90])
--> cosd([0 30 45 60 90 360])
 ans  =
   1.   0.8660254   0.7071068   0.5   0.   1.

--> 1 ./ cosd([-90 90])
 ans  =
   Inf   Inf

参照


Report an issue
<< cos Trigonometry cosh >>