exactly what I need

This commit is contained in:
2024-11-06 14:09:04 +01:00
parent 677aa8a90f
commit 88fd8ac676
2 changed files with 14 additions and 33 deletions

View File

@@ -82,23 +82,4 @@ private:
vector<float> b;
int stopien;
float x;
};
int main()
{
float x = 0;
Wielomian wielomian;
cout << "Program do obliczenia wielomianu schematem hornera\n";
cout << "Podaj x dla ktorego szukamy rozwiazania: ";
cin >> x;
wielomian.readFromFile("dane.txt");
wielomian.setX(x);
wielomian.oblicz();
wielomian.wyswietl_wynik();
wielomian.reverse_a();
cout << "\nWynik rekurencyjny: " << wielomian.oblicz_rekurencyjnie(wielomian.getStopien() - 1) << endl;
return 0;
}
};