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

Schemat Hornera rekurencyjnie

29 listopada 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 marca 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 marca 2013 o 8:13 pm

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

  2. 22 lipca 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ździernika 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 grudnia 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 stycznia 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 kwietnia 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.

  7. 16 Maj 2018 o 4:58 am

    Excellent pieces. Keep writing such kind of information on your blog.

    Im really impressed by your blog.
    Hey there, You have performed an excellent job. I’ll certainly digg it
    and for my part suggest to my friends. I’m confident they’ll be
    benefited from this web site.

  1. 8 marca 2015 o 5:49 pm
  2. 5 Maj 2017 o 8:45 pm


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


Komentujesz korzystając z konta Wyloguj /  Zmień )

Zdjęcie na Google+

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

Zdjęcie z Twittera

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

Zdjęcie na Facebooku

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


Connecting to %s

%d blogerów lubi to: