home *** CD-ROM | disk | FTP | other *** search
/ Dream 41 / Amiga_Dream_41.iso / Amiga / Programmation / c / PDC.lha / PDC / bin.lzh / sample / Savage.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-06  |  409 b   |  22 lines

  1.  
  2. #define MaxLimit    1
  3.  
  4. extern double   tan(), atan(), log(), exp(), sqrt();
  5.  
  6. double          a, b, c, d, e;
  7.  
  8. main()
  9. {
  10.     int             iter, i, iloop;
  11.  
  12.     for (iter = 0; iter < MaxLimit; iter++) {
  13.         a = 1.0;
  14.         iloop = 2499;
  15.  
  16.         for (i = 0; i < iloop; i++) {
  17.             a = tan(atan(exp(log(sqrt(a * a))))) + 1.0;
  18.             printf("the value of 'a' = %24.20e\n", a);
  19.         }
  20.     }
  21. }
  22.