今天才知道math.h里面有cos....
#include<stdio.h>
#include<math.h>
const double pi=3.14159265;
int main()
{printf("%g\n",sqrt(0.5-cos(pi/3)/2.0));return 0;
}
今天才知道math.h里面有cos....
#include<stdio.h>
#include<math.h>
const double pi=3.14159265;
int main()
{printf("%g\n",sqrt(0.5-cos(pi/3)/2.0));return 0;
}