On Tuesday, April 21, 2020 at 10:08:27 AM UTC-7, Markus Wageringel wrote: > > The bottleneck in `from_polynomial` is the check to test whether the input > is actually a symmetric polynomial. If you disable the check, the > computation is moderately fast, although not quite as fast as Vincent's > code. > > Sym.e().from_polynomial(P(seq_taylor), check=False) > > That's quite a horrible check then! All you'd need to check is that f(x2,x1,x3,...,xn) and f(x2,x3,...,xn,x1) are both equal to f. Perhaps it's worth changing the check. The super-complicated procedure implemented now (expand the representation as polynomial in the symmetric functions back into a polynomial in the original variables) can then be relegated to a doctest.
-- 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 on the web visit https://groups.google.com/d/msgid/sage-devel/8b617d39-0177-40d7-b8d8-01713f9a4fe0%40googlegroups.com.