home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_08 / 8n08123a < prev    next >
Text File  |  1990-07-18  |  401b  |  25 lines

  1.     
  2.     
  3.     #include <stdio.h>
  4.     #include <ctype.h>
  5.     #include <math.h>
  6.     
  7.     void main()
  8.     {
  9.      double f, ssin;
  10.      int index, n = 75;
  11.     
  12.      f = 1.0 / 10000.0 ;
  13.      f = f / 3.0;
  14.      for(index = 1; index < n; index++)
  15.       {
  16.        f = f / 10.0;
  17.        ssin = sin(f);
  18.        printf(" %-2d %e %e\n", index, f, ssin );
  19.       }
  20.     }
  21.     
  22.     
  23.     LISTING 3
  24.  
  25.