You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure whether this should be allowed, but when casting a Oscar polynomial to a Singular polynomial over the rationals, Singular does not care whether the Oscar polynomial was defined over QQ or ZZ:
Kx,(x0,x1,x2,x3,x4,x5) = PolynomialRing(QQ,6);
g = 2*x1+(2^2+1)*x2+(2^3+2)*x3+(2^4+2^2+1)*x4+(2^5+2^3+2)*x5;
S,_ = Singular.PolynomialRing(singular_ring(K),map(string,symbols(Kx)))
S(g) # works perfectly
Rx,(x0,x1,x2,x3,x4,x5) = PolynomialRing(ZZ,6);
g = 2*x1+(2^2+1)*x2+(2^3+2)*x3+(2^4+2^2+1)*x4+(2^5+2^3+2)*x5;
S(g) # works perfectly as well
In contrast, when casting a Oscar polynomial to a Singular polynomial over the rational function field, Singular complains if the Oscar polynomial was defined over a univariate polynomial ring:
For the sake of consistency, I think that (::Singular.N_FField)(::fmpq_poly) should be allowed. Are there any reasons why function fields should behave differently to rationals (honest question)?
The text was updated successfully, but these errors were encountered:
Not sure whether this should be allowed, but when casting a Oscar polynomial to a Singular polynomial over the rationals, Singular does not care whether the Oscar polynomial was defined over
QQ
orZZ
:In contrast, when casting a Oscar polynomial to a Singular polynomial over the rational function field, Singular complains if the Oscar polynomial was defined over a univariate polynomial ring:
For the sake of consistency, I think that
(::Singular.N_FField)(::fmpq_poly)
should be allowed. Are there any reasons why function fields should behave differently to rationals (honest question)?The text was updated successfully, but these errors were encountered: