#포함하다 이중 죄(double x); 이중 황갈색(double x); |
sin 함수는 사인 값을 계산합니다.
각도는 라디안으로 표시됩니다.
tan 함수는 탄젠트 값을 계산합니다.
각도는 라디안으로 표시됩니다.
힌트: cos, sin, tan, acos, asin, atan
예: Sin(x)
#include <stdio.h>
#include <math.h>
int main()
{
double x;
printf("x\tsin(x)\n");
for (x = 0; x <= 1.0; x += 0.1)
printf("%.1f\t%f\n", x, sin(x));
return 0;
}
예: tan(x)
#include <stdio.h>
#include <math.h>
int main()
{
double x;
printf("x\ttan(x)\n");
for (x = 0; x <= 1.0; x += 0.1)
printf("%.1f\t%f\n", x, tan(x));
return 0;
}
예: cos(x)
#include <stdio.h>
#include <math.h>
int main()
{
double x;
printf("x\tcos(x)\n");
for (x = 0; x <= 1.0; x += 0.1)
printf("%.1f\t%f\n", x, cos(x));
return 0;
}