ДС
Дмитрий Сиротин

что я делаю не так? выдает ошибку: [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.

Юрий Сунцов
Юрий Сунцов

ошибка означает, что ожидаеться ")" а найдено "END". не правильно скобки или енды стоят

Saper Anonymous
Saper Anonymous

(exp((m*x)*ln(2)) - первая скобка перед exp лишняя

Похожие вопросы
declaration expected but identifier 'x1' found, проблема Delphi
Delphi 7 [Error] Unit1.pas(64): Undeclared identifier: 'IdSMTP1'
ошибка в матлабе. error: ")" Expecte, "(" found что это за ошибка?
Delphi вот такие ошибка как исправить [Error] Unit4.pas(219): Declaration expected but identifier 'edit1' found
подскажите где у меня ошибка, пишу прогу на дельфи 7??? ошибка ',' or ',' expected but VAR Found
пишет ошибку [Error] Project2.dpr(133): Declaration expected but 'FOR' found что делать ?
Ошибка (с++) error: expected primary-expression before ']' token|
Не пойму в чем ошибка, пишет: "Expected END but VAR found "
народ подскажите где ошибка в записи b:=-3*c-a; что он мне выдает Fatal: Syntax error, "=" expected but ":=" found
[Error] Unit1.pas(28): Undeclared identifier: 'TIdFTP'