Source code of Windows XP (NT5)
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.

18 lines
381 B

  1. /* _Poly function */
  2. #include "xmath.h"
  3. _STD_BEGIN
  4. _CRTIMP2 double __cdecl _Poly(double x, const double *tab, int n)
  5. { /* compute polynomial */
  6. double y;
  7. for (y = *tab; 0 <= --n; )
  8. y = y * x + *++tab;
  9. return (y);
  10. }
  11. _STD_END
  12. /*
  13. * Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
  14. * Consult your license regarding permissions and restrictions.
  15. V3.10:0009 */