home *** CD-ROM | disk | FTP | other *** search
- program t9;
- const d=0.0625;
- s=32;
- h=34;
- c=6.28318;
- lim=50;
-
- var x,y:real; i,n:integer;
- begin
- writeln('graphic representation of a function');
- writeln('f(x):=exp(-x)*sin(2*pi*x)');
- for i:=0 to lim do begin
- x:=d*i; y:=exp(-x)*sin(c*x);
- n:=round(s*y)+h;
- repeat
- write(' ');
- n:=n-1
- until n=0;
- writeln('*');
- end
- end.
-
-