| 1 | initial version |
As a general rule, i would recommend not to use the same term for symbols and polynomial indeterminates.
Regarding your question, the meaning of
sage: foo == t
True
is the following: to decide equality between mathematical elements, Sage uses the coercion model : it constructs a common parent P for foo and t, converts both foo and t in P and test the equality between both P(foo) and P(t).
To find the common parent, you can do :
sage: coercion_model.common_parent(t.parent(), foo.parent())
Multivariate Polynomial Ring in s, t, u over Algebraic Field
| 2 | No.2 Revision |
As a general rule, i would recommend not to use the same term for symbols and polynomial indeterminates.
Regarding your question, the meaning of
sage: foo == t
True
is the following: to decide equality between mathematical elements, Sage uses the coercion model : it constructs a common parent P for foo and t, converts both foo and t in P and test the equality between both P(foo) and P(t).
To find the common parent, you can do :
sage: coercion_model.common_parent(t.parent(), foo.parent())
Multivariate Polynomial Ring in s, t, u over Algebraic Field
See :
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.