www.pudn.com > c.rar > NPLYS1.C, change:1996-02-24,size:425b


 
  #include "stdio.h" 
  #include "nplys.c" 
  main() 
  { int i; 
    double p[6]; 
    static double a[16]={1.0,2.0,3.0,4.0,5.0,6.0,7.0, 
           8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0,16.0}; 
    static double x[6]={0.9,-0.9,1.1,-1.1,1.3,-1.3}; 
    nplys(a,16,x,6,p); 
    printf("\n"); 
    for (i=0; i<=5; i++) 
      printf("x(%d)=%5.2lf   p(%d)=%13.7e\n", 
             i,x[i],i,p[i]); 
    printf("\n"); 
  }