#include <math.h>
double
polinomio
(
double
*
coeff
,
int
n
,
double
x
){
int
i
;
double
k
;
k
=
0
;
for
(
i
=
0
;
i
<=
n
;
i
++)
k
=
k
+
coeff
[
i
]*
pow
(
x
,
i
);
return
k
;
}