# Revision history [back]

### multivariate polynomials, libsingular and polydict

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?