Hello Tristan,
 

> n = 100; d=3
> load DATA+'my_functions.py'
> coefficients = poly_expand(n,int(n**(1/d)),d)
> R.<t,s> = ZZ[]
> f = 0
> for c in coefficients:
>     f += c*t^d
>     d -= 1
> g = f.homogenize('s')
>
> Running this returns "AttributeError: 'GlobalPolynomialRing' object has no 
> attribute '_first_ngens'".
>
Could it be that the elements of "coefficients" do not lie in ZZ but 
elsewhere (e.g. in the symbolic ring)?  Your example seems to work fine (at 
least with Sage 6.1.beta2) if "coefficients" is a vector of elements of ZZ.

Peter

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to