Strona główna > C++, Rekurencja, Schemat Hornera > Schemat Hornera rekurencyjnie

Schemat Hornera rekurencyjnie

29 Listopad 2009 Dodaj komentarz Go to comments
//schemat Hornera rekurencyjnie
#include <iostream>
using namespace std;
float horner(int n, float wsp[20], float x);
int n;
float x,a[20];
int main()
    cout<<"Podaj stopien wielomianu:  ";
    cout<<"Podaj X:  ";
    cout<<"Wprowadz wspolczynniki wielomianu: \n";
    for (int i=0;i<=n;i++)
    cout<<"Wartosc wielomianu =  "<<horner(n,a,x)<<"\n";
    system ("pause");
float horner(int n, float wsp[20],float x)
    if (n==0)
       return wsp[0];
        return horner(n-1, wsp, x)*x+wsp[n];
  1. 18 Marzec 2013 o 7:56 pm

    Hi! Would you mind if I share your blog with my facebook
    group? There’s a lot of people that I think would really appreciate your content. Please let me know. Thank you

    • 18 Marzec 2013 o 8:13 pm

      You can share, its for free. I’m glad If I help someone.

  2. 22 Lipiec 2013 o 4:29 am

    Their farm is Animal Welfare approved which means their animals
    are raised with the highest level of activity can create strain that causes chronic Pool
    Repair Fort Myers Fl and the bedding that you use for sleeping.
    A number of conditions not connected to the next part of the foot and ankle are working
    properly, that there are three groups of muscles, metabolic and hormonal regulation, 2, 3 cellular regeneration, and mating.

  3. 17 Październik 2014 o 10:00 am

    I appreciate, cause I discovered just what I was taking a
    look for. You have ended my 4 day lengthy hunt! God Bless you man. Have
    a nice day. Bye

  4. 8 Grudzień 2014 o 9:19 am

    Test your bandwidth, easy and without cost utilizing TestInternetSpeed.Link.
    It is accurated, fast and works fine on Android, iPhone, Tablets, and all computers with an updated web navigator.
    At the start a ping test is done and the faster server
    is selected, to make all the bandwidth tests.

  5. 3 Styczeń 2017 o 6:11 pm

    What’s up everyone, it’s my first go to see at this site, and paragraph is
    truly fruitful in support of me, keep up posting such content.

  6. 26 Kwiecień 2017 o 11:48 pm

    Wow, that’s what I was looking for, what a stuff!
    present here at this website, thanks admin of this web page.

  1. 8 Marzec 2015 o 5:49 pm


Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:


Komentujesz korzystając z konta Log Out / Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Log Out / Zmień )

Facebook photo

Komentujesz korzystając z konta Facebook. Log Out / Zmień )

Google+ photo

Komentujesz korzystając z konta Google+. Log Out / Zmień )

Connecting to %s

%d bloggers like this: