编程求∫(sin2x/x)dx

来源:百度知道 编辑:UC知道 时间:2024/05/16 08:00:44
急求.谁能帮我?

#include "stdio.h"
#include "math.h"
#define d 10 /*我不知道d是常量还是变量,我这里就当常量了啊*/
void main()
{
double s;
int x;
printf("inpu x:");
scanf("%d",&x);
s=(sin(2*x)/(double)x)*d*x;
printf("result is %d\n",s);
}