Changeset 345 in Sophya for trunk/SophyaPI/PIext/servnobjm.cc
- Timestamp:
- Aug 3, 1999, 10:25:50 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/servnobjm.cc
r344 r345 778 778 fputs(" { \n double x,A,B; \n LAB10: \n A = drand01(); \n", fip); 779 779 fputs(" if ( A == 0. ) goto LAB10; \n B = drand01(); \n", fip); 780 fputs(" x = sqrt(-2.*log(A))*cos( M_2PI*B); \n", fip);780 fputs(" x = sqrt(-2.*log(A))*cos(2.*M_PI*B); \n", fip); 781 781 fputs(" return(x); \n } \n", fip); 782 782 fputs("#define GauRand() NorRand() \n", fip); … … 1425 1425 fputs(" { \n double x,A,B; \n LAB10: \n A = drand01(); \n", fip); 1426 1426 fputs(" if ( A == 0. ) goto LAB10; \n B = drand01(); \n", fip); 1427 fputs(" x = sqrt(-2.*log(A))*cos( M_2PI*B); \n", fip);1427 fputs(" x = sqrt(-2.*log(A))*cos(2.*M_PI*B); \n", fip); 1428 1428 fputs(" return(x); \n } \n", fip); 1429 1429 fputs("#define GauRand() NorRand() \n", fip);
Note:
See TracChangeset
for help on using the changeset viewer.