Your test2() function leave the polynomial data inside Singular. Of course 
its faster to not pull the (pretty big) coefficients out of Singular. 
Wouldn't the following be a much better comparison?

def test3(x,y,z): 
    x = singular(x) 
    y = singular(y) 
    z = singular(z) 
    for i in range(100): 
        p = (x+y+z)^i 
        p.sage()

The latter is awfully slow. In fact it still hasn't finished by the time I 
wrote this post so forget about it :-)


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

Reply via email to