home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
vc98
/
crt
/
src
/
xlpoly.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-06-16
|
465b
|
24 lines
/* _LPoly function */
#include "wctype.h"
#include "xmath.h"
_STD_BEGIN
_CRTIMP2 long double _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) 1994 by P.J. Plauger. ALL RIGHTS RESERVED.
* Consult your license regarding permissions and restrictions.
*/
/*
941029 pjp: added _STD machinery
*/