Changeset 345 in Sophya for trunk/SophyaPI/PIext


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

Petits bugs - Reza 03/08/99

Location:
trunk/SophyaPI/PIext
Files:
2 edited

Legend:

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

    r344 r345  
    168168  mObjMgr->SetCurrentDir(tokens[0]);
    169169  }
     170else if (kw == "pwd") {
     171  string dirn;
     172  mObjMgr->GetCurrentDir(dirn);
     173  cout << "CurrentDirectory: " << dirn << endl;
     174  } 
    170175else if (kw == "listdirs")   {
    171176  if  (tokens.size() < 1)  tokens.push_back("*");
  • 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.