作业帮 > 综合 > 作业

c语言能直接输入三角函数符号嘛 比如sin cos

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/11 20:35:45
c语言能直接输入三角函数符号嘛 比如sin cos
可以,是标准C函数,语法如下
#include
double sin(double x);
double cos(double x);
详细描述:
NAME
sin,sinf,sinl - sine function
SYNOPSIS
#include
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)