Generates random three-velocities, optionally specifiying a magnitude
Number of three-velocities to generate
Absolute value of the three-velocities, with default
Arguments passed to
r3vel() returns a random three-velocity. Function
r4vel() is a convenience wrapper for
Returns a vector of three velocities.
It is not entirely trivial to sample uniformly from the unit ball or unit sphere, but it is not hard either.
Robin K. S. Hankin
1 2 3 4 5 6 7 8 9 10 11 12 13
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.