Leaked source code of windows server 2003
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
465 B

  1. /* _LPoly function */
  2. #include "wctype.h"
  3. #include "xmath.h"
  4. _STD_BEGIN
  5. _CRTIMP2 long double _LPoly(long double x, const long double *tab, int n)
  6. { /* compute polynomial */
  7. long 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. */