mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
404 B
19 lines
404 B
/* _LPoly function */
|
|
#include "xmath.h"
|
|
_STD_BEGIN
|
|
|
|
_CRTIMP2 long double __cdecl _LPoly(long double x,
|
|
const long double *tab, int n)
|
|
{ /* compute polynomial */
|
|
long double y;
|
|
|
|
for (y = *tab; 0 <= --n; )
|
|
y = y * x + *++tab;
|
|
return (y);
|
|
}
|
|
_STD_END
|
|
|
|
/*
|
|
* Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
|
|
* Consult your license regarding permissions and restrictions.
|
|
V3.10:0009 */
|