Stephen Kauffman
unread,Jun 23, 2014, 10:57:39 PM6/23/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-s...@googlegroups.com
I have a boolean polynomial, poly, in a BooleanPolynomialRing() with in this case 108 variables. I have a tuple of length 108 (double checked) whose elements are definitely other boolean polynomials in the parent ring of poly. But when I execute:
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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_54.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cG9seSh0dXBsZShtYXRfbGlzdChHUykrbWF0X2xpc3QoR0MpK21hdF9saXN0KEdZKSkp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpSB6nTU/___code___.py", line 2, in <module>
exec compile(u'poly(tuple(mat_list(GS)+mat_list(GC)+mat_list(GY)))
File "", line 1, in <module>
File "pbori.pyx", line 4023, in sage.rings.polynomial.pbori.BooleanPolynomial.__call__ (sage/rings/polynomial/pbori.cpp:27828)
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.
Any ideas? thanks
-Steve