program lab4; uses crt,graph; var x1,x2:integer; y1,y2:real; procedure proc_sin(xmin,xmax:integer; ymin,ymax:real); var x,y,h,ymax1,ymin1,g,y_pr,d,r,x11,x22,y11,y22,y33:real; i,j,q,a,Dr:Integer; y_pr1,cl0p:Boolean; begin Dr:=Detect; InitGraph(Dr,a,''); r:=180/pi; setcolor(5); OutTextXY(30,30,'sin(x)'); SetColor(12); line(234,60,234,200); line(20,130,450,130); line(234,60,239,70); line(234,60,229,70); line(450,130,440,125); line(450,130,440,135); x11:=(xmin+180)/r; y11:=sin(x); x22:=(xmax+180)/r; y22:=sin(x); SetColor(15); for i:=-360 to 720 do begin x:=i/r; y:=sin(x); putpixel(round(20*x)+170,round(20*y)+130,14); end; for i:=xmin+180 to xmax+180 do begin x:=i/r; y:=sin(x); putpixel(round(20*x)+170,round(20*y)+130,1); end; SetColor(5); d:=xmin/r; ymin1:=sin(d); d:=xmax/r; ymax1:=sin(d); For i:=xmin to xmax do begin d:=i/r; y:=sin(d); For q:=-3 to 3 do begin If (i=(0+q*180)) then begin y:=0; Break; end; If (i=(90+q*360))then begin y:=1; Break; end; If (i=(270+q*360))then begin y:=-1; Break; end; end; if y>ymax1 then ymax1:=y; if yymin)or(ymax1