ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 30 May 2019 16:56:09 -0500AttributeError: 'dict' object has no attribute 'solve'http://ask.sagemath.org/question/46729/attributeerror-dict-object-has-no-attribute-solve/How I can fix this error '''AttributeError: 'dict' object has no attribute 'solve'
It appears after I tried to `solve(P)`:
G = I.groebner_basis()
P = {}
ind = 0
for i in range (n):
if (G[i].degree() < num):
ind = ind+1
P[ind] = G[i]
solve(P)MaoriThu, 30 May 2019 16:56:09 -0500http://ask.sagemath.org/question/46729/How to create in Sage system of equations using elements from boolean field?http://ask.sagemath.org/question/46710/how-to-create-in-sage-system-of-equations-using-elements-from-boolean-field/I want to create a field on 8 elements, and then, using this elements make a System of equations like:
nb = 8
varl = [c+ str(p) for c in 'xy' for p in range (nb)]
B = BooleanPolynomialRing(names = varl)
f1 = x1 + x7*x2
f2 = x4*x6*x8 + x7
and then....
But in this case Sage give me an error NameError: name 'x1' is not defined
And in this case:
f1 = x[3] + x[1]*x[2]
f2 = x[4]*x[6]*x[2] + x[7]
error: TypeError: 'sage.symbolic.expression.Expression' object does not support indexing
Is there any way to create them in Sage?MaoriThu, 30 May 2019 04:09:10 -0500http://ask.sagemath.org/question/46710/