Keil Logo

__cos

概要
double __cos (
  double x);   /* value to calculate cosine for */
説明

__cos デバッガ関数は、浮動小数点値 x の三角余弦を計算します。

戻り値

__cos 関数は、x の余弦を返します。

関連項目

__sin__tan

FUNC float cosine_wave (float f) {
  float pi = 3.14159265;

  return __cos (f * (((float) STATES) / CLOCK) * 2 * pi);
}
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.