This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / MINICERN / mathlib / gen / v / normco.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1996/04/01 15:02:54  mclareni
6 * Mathlib gen
7 *
8 *
9 #include "gen/pilot.h"
10       SUBROUTINE NORMCO(A,B,UA,UB,SIGMAA,SIGMAB,RO)
11       Y=RNDM(-1.)
12       Z=RNDM(-1.)
13       X=6.2831853*Z
14       AA=SQRT(-2.*LOG(Y))
15       A=UA+SIGMAA*AA*(SQRT(1.-RO**2)*COS(X)+RO*SIN(X))
16       B=UB+SIGMAB*AA*SIN(X)
17       RETURN
18       END