I've recently coded a function that transforms Cartesian points into hyperspherical points. While I've verified its accuracy for 2D and 3D points, I'm finding it challenging to test for higher dimensions due to the lack of available examples.
Surprisingly, my search for online tools that handle such conversions in higher dimensions came up short. I've also explored MATLAB and Mathematica but couldn't find a built-in function that accomplishes this.
Could anyone provide examples of Cartesian to Hyperspherical coordinates conversion in dimensions greater than three or give me resources that might have this information? It would be helpful for validating the correctness of my function.
Thank you in advance!
In all cases, the first column is Cartesian and the second hyperspherical.
For 4D space:
For 5D: