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


 
  #include "stdio.h" 
  #include "nplys.c" 
  main() 
  { int i; 
    double p[6]; 
    static double a[7]={-20.0,7.0,-7.0,1.0, 
                        3.0,-5.0,2.0}; 
    static double x[6]={0.9,-0.9,1.1,-1.1,1.3,-1.3}; 
    nplys(a,7,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"); 
  }