This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gsl_rand_dir_3d


Thanks for the suggestion, personally I went the easy route and just
extended the 2D non-trig algorithm to 3D, although your method is more
elegant.

>   dA = sin(theta) dtheta dphi
dA = r sin(theta) dtheta r dphi (but then we're talking about unit
spheres, so it doesn't really matter.)

Stuart


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]