что я делаю не так? выдает ошибку: [Error] Unit1.pas(37): ')' expected but 'END' found
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var a,x,m,y:real;
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
a:=strtofloat(edit1.text);
m:=strtofloat(edit2.text);
x:=strtofloat(edit3.text);
y:=exp(2*ln(x))-(exp((m*x)*ln(2))*(sin(abs(5*x))+ exp(3.2*ln(a));
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
close;
end;
end.