NOTE: Why did I comment out ParallelMap
? Because apparently CylindricalDecomposition[..., "Components"]
fails for many, if not all less trivial inputs on older Mathematica versions up to 13.0.1 when parallel kernels are in use. This appears to be a long-running, reported issue has been fixed in 13.1. You can effectively run this code with ParallelMap
once on a fresh session, but not more than that.