Курсовая работа: Система обработки научных данных
settextstyle(7,HORIZ_DIR,0);
outtextxy(50,30,"BEST CURVE FIT DIAGRAM");
line(50,400,600,400);
line(50,400,50,50);
outtextxy(556,410,"x");
settextstyle(7, VERT_DIR,0);
outtextxy(10,375,"y");
settextstyle(7, HORIZ_DIR,0);
for(i=0;i<n;i++)
{ int x1 = a[i]+50;
int y1 = 400 - b[i];
setfillstyle(SOLID_FILL,14);
setcolor(14);
circle(x1,y1,1);
floodfill(x1,y1,14);
}
setcolor(WHITE);
int x2,y2;
line(50,400,600,400);
line(50,50,50,400);
moveto(50,400);
float y;
for( int i=0;i<198;i++)
{
y = (aa*pow(i,2)) +(bb*i) + cc;
x2 = i+50;
y2 = 400-y;
lineto(x2,y2);
}