On Monday, June 23, 2014 7:57:39 PM UTC-7, Stephen Kauffman wrote:
>
> poly(tuple(mat_list(GS)+mat_list(GC)+mat_list(GY)))                 # GS 
> etc are matrices of boolean polynomials turned into lists, concatenated and 
> then turned into a tuple 
>
> ValueError: Number of arguments is different from the number of variables 
> of parent ring. 
>
> I get the above error which doesn't make sense to me, since elsewhere in 
> the documentation for evaluating (non boolean multivariate polynomials) 
> f((1,2,3)) = f(1,2,3) should work. 
>
The convenience feature of allowing a tuple rather than the values 
separately is hardly necessary thanks to python's iterable unpacking 
operator * for arguments:

 poly( *(mat_list(GS)+mat_list(GC)+mat_list(GY)))

should do the trick.

It would be nice to harmonize boolean and other multivariate polynomials a 
bit. Whether that should consist of implementing tuples-as-arguments for 
boolean polys or deprecating that feature for other polynomials can be up 
for discussion.

-- 
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/d/optout.

Reply via email to