Hello,

What is wrong with the code below and how to fix it? I have a function
that produces a polynomial in t. Then I want to plug in u/v in another
function. The code works if I replace QQ by ZZ at least for the first
ring, but rationals seem to be much faster.

Thank you!
Andrey


Rt.<t> = PolynomialRing(QQ,1)
p = 1+t
R.<u,v> = PolynomialRing(QQ, 2)
p(u/v)

Output:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/novoselt/.sage/sage_notebook/worksheets/admin/27/code/
50.py", line 9, in <module>
    p(u/v)
  File "/home/novoselt/sage/sage-3.0.1/local/lib/python2.5/site-
packages/sympy/plotting/", line 1, in <module>

  File "multi_polynomial_libsingular.pyx", line 1461, in
sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular.__call__
(sage/rings/polynomial/multi_polynomial_libsingular.cpp:10503)
TypeError: object of type 'FractionFieldElement' has no len()
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to