When defining mutlivariate polynomial in two different ways, I cannot compare them because they seem to have a different type. On the one hand I have
R = PolynomialRing(QQ,'x', 3); x = R.gens()
f = x[0] + x[1] + x[2]
type(f)
which gives <ππ’ππ'ππππ.πππππ.ππππ’ππππππ.πππππβ―ππππ’ππππππβ―πππππππππππ.πΌπΏπππ’ππππππβ―πππππππππππ'>. On the other hand I define what is (to me) the same polynomial:
SF = SymmetricFunctions(F); SF.inject_shorthands(verbose=False)
g = h[1].expand(3, alphabet = R.gens())
type(g)
which gives <πππππ'ππππ.πππππ.ππππ’ππππππ.πππππβ―ππππ’ππππππβ―πππππππ.πΌπΏπππ’ππππππβ―ππππ’ππππ'>
Thus when comparing f == g
it gives false. How can get these two modules to talk to each other?