On Sat, Jul 27, 2024 at 9:59 PM 'Animesh Shree' via sage-support
<sage-support@googlegroups.com> wrote:
>
> I saw this behavior
>
> sage: R1.<x,y,z> = QQ[]
> sage: R2.<z,x,y> = QQ[]  # Rearrange variables of R1
> sage: R1
> Multivariate Polynomial Ring in x, y, z over Rational Field
> sage: R2
> Multivariate Polynomial Ring in z, x, y over Rational Field
> sage: R1 is R2
> False
> sage: print(R1.gens(), R1.variable_names())
> (x, y, z) ('x', 'y', 'z')
> sage: print(R2.gens(), R2.variable_names())
> (z, x, y) ('z', 'x', 'y')
> sage:
>
>
> It looks like the order in which we initiate the polynomials leads to 
> different polynomial spaces. I thought this should not be the case.
> I got confused. Is it right or bug or intentional?

It is by design. Multivariate polynomial rings come with monomial
orders (https://en.wikipedia.org/wiki/Monomial_order)
and in this case R1 and R1 have different monomial orders.
Monomial orders are crucial for many algorithms operating on
multivariate polynomial rings, their ideals, etc.

Dima

>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/30b4f982-9b1a-434f-a512-7690b6c16e6bn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq1xVC4do6ne%3DZiDvT1Pr3x87R9B%3DUcZk6oMmP-u5F_CKg%40mail.gmail.com.

Reply via email to