m
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
  
 
<math>\sqrt(A) cos(2pi*drand48())</math>
 
<math>\sqrt(A) cos(2pi*drand48())</math>
 +
 +
where A is still the exponential RV calculated in 1b.
 +
 +
 +
- Yes you are correct, I forgot the 2pi factor to change the range of the uniform random variable from [0-1] to [1-2pi].
 +
 +
thank you for pointing it out.
 +
 +
Seraj

Latest revision as of 16:07, 21 October 2008

Regarding Seraj's solution, i believe the solution would be

$ \sqrt(A) cos(2pi*drand48()) $

where A is still the exponential RV calculated in 1b.


- Yes you are correct, I forgot the 2pi factor to change the range of the uniform random variable from [0-1] to [1-2pi].

thank you for pointing it out.

Seraj

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett