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.

23 lines
420 B

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