用C/C++绘制出余弦曲线和正弦曲线(不使用库函数)
用C/C++绘制出余弦曲线和正弦曲线(不使用库函数)
- 余弦函数
- 正弦函数
#include
#include
#define PI 3.1
#define tow_PI 6.2
using namespace std;
int main()
{
double y,x;
for(y=1;y>0;y-=0.1)
{
double cx=asin(y);
for(x=0;x
cout<
for(;x
cout<
}
for(;y>=-1;y-=0.1)
{
for(double t=0;t
double cx=abs(asin(y));
for(x=0;x
cout<
for(;x
cout<
}
return 0;
}