Changeset 345 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Aug 3, 1999, 10:25:50 AM (26 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r344 r345 168 168 mObjMgr->SetCurrentDir(tokens[0]); 169 169 } 170 else if (kw == "pwd") { 171 string dirn; 172 mObjMgr->GetCurrentDir(dirn); 173 cout << "CurrentDirectory: " << dirn << endl; 174 } 170 175 else if (kw == "listdirs") { 171 176 if (tokens.size() < 1) tokens.push_back("*"); -
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.