1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54:
| unit TEST_PM_FM;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Series, Dialogs, TeEngine, ExtCtrls, TeeProcs, Chart, StdCtrls;
type TForm9 = class(TForm) Button1: TButton; Chart1: TChart; Series1: TLineSeries; procedure Button1Click(Sender: TObject); private public end;
var Form9: TForm9;
implementation
{$R *.dfm}
procedure TForm9.Button1Click(Sender: TObject); var x, y: real; ut,ft,M,fn:real; begin ut:=1; ft:=10; fn:=1; M:=30; x:=1; repeat y:=ut*cos(2*pi*ft*x+M*sin(2*pi*fn*x)); series1.AddXY(x,y); x:=x+1; until x=10 ; begin series1.Clear; series1.AddXY(0,0); series1.AddXY(1,y); end;
end;
end. |