Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>poly() generate a polynomial from arguments</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
poly()                   Generate a Polynomial from Arguments

 #include   <math.h>

 double     poly(x,n,c);
 double     x;
 int        n;
 double     c[];

    poly() generates a polynomial in 'x', of degree 'n', with
    coefficients c[0], c[1],...,c[n].  For example, if n = 4, the
    generated polynomial is

            c[4]x4 + c[3]x3 + c[2]x2 + c[1]x + c[0]

    Returns:    The value of the polynomial as evaluated for 'x'.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson