vendredi 30 avril 2021

Generating random points from intersection of multiple spaces in _R_8

I am trying to write a Python code to sample 50 random points from the intersection of five subspaces in R8. The spaces are three hypercylinders (x12+x22=4; x32+x42=4; x52+x62=4) and two linear spaces (x1+x3+x5+x7=4; x2+x4+x6+x8=0).

For all I know is that the intersection can be an infinite set and finding roots of functions as mentioned in Python: Intersection of Spheres may not be feasible.

Also, I tried implementing from Sample random points over intersection if surfaces but couldn't get much.

I have recently started to use Python and request you to pardon me for my rookie mistakes.




Aucun commentaire:

Enregistrer un commentaire