[sage-support] Re: How to create a new virtual environment based on an existing sage installation

2022-03-12 Thread Matthias Koeppe
https://trac.sagemath.org/ticket/33440 fixes the problem and is waiting for review. On Tuesday, March 1, 2022 at 11:07:50 AM UTC-8 Matthias Koeppe wrote: > The particular error that you are running into comes from Singular not > being in PATH. > > Use "sage -sh" to enter a shell in which

[sage-support] Re: Multivariate polynomial ring with total degree no larger than n

2022-03-12 Thread 'Peter Mueller' via sage-support
I would do something like this (example for n=5): ``` n = 5 R = PolynomialRing(QQ, 'x', n) x0 = R.gen(0) # A shorter alternative is R.0 f = sum((i+1)*x0^i for i in range(n+1)) # sample polynomial p = 1 for xi in R.gens(): p *= f.substitute({x0:xi}) p = sum(coeff*mono for coeff, mono in

[sage-support] Multivariate polynomial ring with total degree no larger than n

2022-03-12 Thread timaeus
Hello everyone, I need to compute the product: f(x_1)f(x_2)...f(x_n), where f is a polynomial of degree n, and I do not need the part with total degree larger than n. To reduce the computation complexity, I think it would be helpful to construct an n-variable multivariate polynomial ring,