Курсовая работа: Разработка программного обеспечения для нахождения корней биквадратного уравнения
x.push_back(sqrt(y2));
x.push_back(-sqrt(y2));}
else
{if(y1 < 0 && y2 >= 0)
{x.push_back(sqrt(y2));
x.push_back(-sqrt(y2));}
else
{x.push_back(sqrt(y1));
x.push_back(-sqrt(y1));}}}
return x;}
//---------------------------------------------------------------------------
__fastcall TfrmBikvur::TfrmBikvur(TComponent* Owner)
: TForm(Owner)
{}
//---------------------------------------------------------------------------
void __fastcall TfrmBikvur::btnCalcClick(TObject *Sender)
{lbxX->Clear();
list<double> res = Bikvur(htA->Value, htB->Value, htC->Value);
int i = 1;
while(!res.empty())
{lbxX->Items->Add("x" + IntToStr(i) + " = " + FormatFloat("0.000", res.front()));
res.pop_front();
i++;}}
//---------------------------------------------------------------------------
void __fastcall TfrmBikvur::btnExitClick(TObject *Sender)
{this->Close();}
//---------------------------------------------------------------------------
void __fastcall TfrmBikvur::btnClearClick(TObject *Sender)
{htA->Value = 0;