Thanks for the bug report. I have opened sagemath issue <https://github.com/sagemath/sage/issues/39689>#39689 <https://github.com/sagemath/sage/issues/39689> on github for this.
On Wednesday, March 12, 2025 at 7:47:31 AM UTC-6 leif....@gmail.com wrote: > Hi, > > I noticed a little bug in sage/geometry/polyhedral_complex. > > In line 1613 of is_convex the program calculates > center = sum(vertices) / len(vertices) > > If the complex has no relative boundary cells > (self.relative_boundary_cells()==[]) then "vertices" is an empty list. > Thus, causing a division by zero error. > > I think that this can only happen if the polyhedral complex is empty or > the entire space, thus returning "True" in that case should resolve the > problem. > > Best regards, > > Leif Jacob > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/sage-devel/9c55cdbd-d4f4-4f44-8cf4-1f1cafc6bd0bn%40googlegroups.com.