Changeset 345 in Sophya for trunk/SophyaPI/PIext/servnobjm.cc


Ignore:
Timestamp:
Aug 3, 1999, 10:25:50 AM (26 years ago)
Author:
ercodmgr
Message:

Petits bugs - Reza 03/08/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/servnobjm.cc

    r344 r345  
    778778fputs(" { \n double x,A,B; \n LAB10: \n A = drand01(); \n", fip);
    779779fputs(" if ( A == 0. ) goto LAB10; \n B = drand01(); \n", fip);
    780 fputs(" x = sqrt(-2.*log(A))*cos(M_2PI*B); \n", fip);
     780fputs(" x = sqrt(-2.*log(A))*cos(2.*M_PI*B); \n", fip);
    781781fputs(" return(x); \n } \n", fip);
    782782fputs("#define GauRand() NorRand() \n", fip);
     
    14251425fputs(" { \n double x,A,B; \n LAB10: \n A = drand01(); \n", fip);
    14261426fputs(" if ( A == 0. ) goto LAB10; \n B = drand01(); \n", fip);
    1427 fputs(" x = sqrt(-2.*log(A))*cos(M_2PI*B); \n", fip);
     1427fputs(" x = sqrt(-2.*log(A))*cos(2.*M_PI*B); \n", fip);
    14281428fputs(" return(x); \n } \n", fip);
    14291429fputs("#define GauRand() NorRand() \n", fip);
Note: See TracChangeset for help on using the changeset viewer.