求大佬解释
把%.15e改为%.15f为什么结果不一样?能说明一下%e吗#include<math.h>
#include<stdio.h>
int main(void)
{
double two_pi=2.0*M_PI;
double h=0.1;
double x;
for(x=0.0;x<two_pi;x+=h)
printf("%5.1f: %.15e\n",x,sin(x)*sin(x)+cos(x)*cos(x));
return 0;
}
2018-10-19 15:03
2018-10-19 16:11
2018-10-19 16:20
2018-10-19 22:46

2018-10-21 13:03
非常感谢,我懂了ヾ(^。^*)
2018-10-21 19:29