2 回答

TA貢獻(xiàn)1799條經(jīng)驗(yàn) 獲得超9個(gè)贊
可以,是標(biāo)準(zhǔn)C函數(shù),語法如下
#include <math.h>
double sin(double x);
double cos(double x);
詳細(xì)描述:
NAME
sin, sinf, sinl - sine function
SYNOPSIS
#include <math.h>
double sin(double x);
float sinf(float x);
long double sinl(long double x);
Link with -lm.
DESCRIPTION
The sin() function returns the sine of x, where x is given in radians.
RETURN VALUE
The sin() function returns a value between -1 and 1.
CONFORMING TO
SVr4, 4.3BSD, C89. The float and long double variants are C99 requirements.
SEE ALSO
acos(3), asin(3), atan(3), atan2(3), csin(3), cos(3), tan(3)
- 2 回答
- 0 關(guān)注
- 2079 瀏覽
添加回答
舉報(bào)