Курсовая работа: Дослідження методів інтерполяції
setbkcolor (white);
x: =20; y: =20;
dy0: = (getmaxy div 2 - (trunc (80*u [0])));
dy1: = (getmaxy div 2 - (trunc (80*u [1])));
dy2: = (getmaxy div 2 - (trunc (80*u [2])));
dy3: = (getmaxy div 2 - (trunc (80*PP)));
dy4: = (getmaxy div 2 - (trunc (80*u [3])));
dy5: = (getmaxy div 2 - (trunc (80*ZZ)));
dy6: = (getmaxy div 2 - (trunc (80*u [4])));
dy7: = (getmaxy div 2 - (trunc (80*u [5])));
dx: =t [1] -t [0] ;
setcolor (red);
line (4*dx,dy0,6*dx,dy1);
line (6*dx,dy1,8*dx,dy2);
line (8*dx,dy2,6*dx+t1,dy3);
line (6*dx+t1,dy3,10*dx,dy4);
line (10*dx,dy4,7*dx+t2,dy5);
line (7*dx+t2,dy5,12*dx,dy6);
line (12*dx,dy6,14*dx,dy7);
repeat
setcolor (green);
line (20,y,getmaxx,y);
line (x, 20,x,getmaxy);
x: =x+20; y: =y+20;
y1: =getmaxy div 2;
setcolor (blue);
outtextxy (2*20,y1,'0 20 40 60 80 100 120');
outtextxy (20,y1-60*2,' 1.5');
outtextxy (20,y1-40*2,' 1.0');