Combine vectors of three-velocities and four-velocities into a single vector
c.RdCombines its arguments recursively to form a vector of three velocities or four velocities
Details
Returns a vector of three-velocities or four-velocities. These are stored as three- or four- column matrices; each row is a velocity.
Note
This function is used extensively in
inst/distributive_search.R.
For “c” as in celerity or speed of light, see sol().
Examples
c(r3vel(3),r3vel(6,0.99))
#> A vector of three-velocities (speed of light = 1)
#> x y z
#> [1,] 0.44073223 0.08407323 0.62555943
#> [2,] -0.52867853 -0.07357900 0.44195229
#> [3,] 0.74312403 0.15591812 0.33105127
#> [4,] -0.42069855 -0.74992821 -0.49063266
#> [5,] -0.97713207 0.14225300 -0.07125314
#> [6,] -0.01667526 0.54400936 0.82696780
#> [7,] -0.31219560 -0.07813057 0.93623155
#> [8,] 0.74378444 0.16653722 0.63178324
#> [9,] 0.56614063 -0.15204378 0.79778912