24 lines
420 B
C
24 lines
420 B
C
/* _Poly function */
|
|
#include "wctype.h"
|
|
#include "xmath.h"
|
|
_STD_BEGIN
|
|
|
|
_CRTIMP2 double _Poly(double x, const double *tab, int n)
|
|
{ /* compute polynomial */
|
|
double y;
|
|
|
|
for (y = *tab; 0 <= --n; )
|
|
y = y * x + *++tab;
|
|
return (y);
|
|
}
|
|
_STD_END
|
|
|
|
/*
|
|
* Copyright (c) 1994 by P.J. Plauger. ALL RIGHTS RESERVED.
|
|
* Consult your license regarding permissions and restrictions.
|
|
*/
|
|
|
|
/*
|
|
941029 pjp: added _STD machinery
|
|
*/
|