Макс
Помогите разабраться в проге. Что какая строчка значит
double i;
double x;
double y;
double A;
double B;
double VP;
double NP;
double Step;
Form2->StringGrid1->Cells[1][0]="X";
Form2->StringGrid1->Cells[2][0]="Y";
NP=StrToFloat(Edit3->Text);
VP=StrToFloat(Edit4->Text);
Step=StrToFloat(Edit5->Text);
A=StrToFloat(Edit1->Text);
B=StrToFloat(Edit2->Text);
Form2->Series1->Clear();
Form2->Show();
for(x=NP;x<=((VP-NP)/Step);x=x+Step)
{
i=i+1;
y = Power(A,-B*x);
Form2->Series1->AddXY(x,y);
Form2->StringGrid1->RowCount=i+1;
Form2->StringGrid1->Cells[1]=FloatToStr(x);
Form2->StringGrid1->Cells[2]=FloatToStr(y);