exactly what I need
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user