angles_to_polysph | R Documentation |
Obtain the angular coordinates of points on a polysphere
\mathcal{S}^{d_1}\times\cdots\times\mathcal{S}^{d_r}
, and vice versa.
angles_to_polysph(theta, d)
polysph_to_angles(x, d)
theta |
matrix of size |
d |
vector with the dimensions of the polysphere. |
x |
matrix of size |
angles_to_polysph
: the matrix x
.
polysph_to_angles
: the matrix theta
.
# Check changes of coordinates
polysph_to_angles(angles_to_polysph(rep(pi / 2, 3), d = 2:1), d = 2:1)
angles_to_polysph(polysph_to_angles(x = c(0, 0, 1, 0, 1), d = 2:1), d = 2:1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.