0% found this document useful (0 votes)
11 views

HLP

Uploaded by

jinto007
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

HLP

Uploaded by

jinto007
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

(Delphi and C++Builder)

To extract module Fourier.dcu or Fourier.obj use MENU:


File->Extract(.obj & .dcu).

Example:
//mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes,
Graphics, Controls, Forms, Dialogs, Fourier;

type
TForm1 = class(TForm)
SpeedButton1: TSpeedButton;
procedure SpeedButton1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
A, B, x, y : array of double;
implementation
{$R *.DFM}

procedure TForm1.SpeedButton1Click(Sender: TObject);

Var
j,L: Integer;
begin
L:=1024;
SetLength(A, L);
SetLength(B, L);
SetLength(x, L);
SetLength(y, L);
for j:= 0 to High(x) do
begin
B[j] := cos(j/7);
A[j] := cos(j/10);
end;
x[j] := copy(A);
y[j] := copy(B);
fft(x,y);
end;
//mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

Invers Fourier transform can be calculated as fft(x,-y);

You might also like