Hi!

On 30 Mai, 12:47, amps <arat...@gmail.com> wrote:
...
> TypeError: unsupported operand parent(s) for '*': 'Multivariate
> Polynomial Ring in z0 over Rational Field' and 'Multivariate
> Polynomial Ring in z1 over Rational Field'
> sage:
> ----------------------------------------
>
> Basically, I want to be able to multiply f and g and I can't, probably
> because they are not recognized as being in the same polynomial ring.

They are *not* in the same polynomial ring. Continuing your example:
  sage: g.parent()
  Multivariate Polynomial Ring in z1 over Rational Field
  sage: f.parent()
  Multivariate Polynomial Ring in z0 over Rational Field

Hence, f and g live in polynomial rings that are isomorphic but that
are certainly not the same:
  sage: g.parent() == f.parent()
  False

For a similar reason, neither f nor g are elements of R.

However, it is possible to convert both f and g into elements of R,
and then you can multiply:
  sage: R(f)*R(g)
  z0^3*z1^3

Best regards
   Simon

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to