COS

Section: Linux Programmer's Manual (3)
Updated: 2002-07-27
Index JM Home Page roff page
 

名前

cos, cosf, cosl - 余弦 (コサイン) 関数  

書式

#include <math.h>

double cos(double x);

float cosf(float x);
long double cosl(long double x);

-lm でリンクする。  

説明

cos() 関数は x の余弦 (コサイン) の値を返す。 ただし、x はラジアン単位で与えられる。  

返り値

cos() 関数は -1 と 1 の間の値を返す。  

準拠

SVr4, 4.3BSD, C99. float 版と long double 版は C99 の要求仕様である。  

関連項目

acos(3), asin(3), atan(3), atan2(3), ccos(3), sin(3), tan(3)


 

Index

名前
書式
説明
返り値
準拠
関連項目

This document was created by man2html, using the manual pages.
Time: 04:31:35 GMT, November 19, 2007