Ask Your Question

Maori's profile - activity

2021-12-14 00:03:57 +0100 received badge  Famous Question (source)
2021-12-14 00:03:57 +0100 received badge  Notable Question (source)
2021-12-14 00:03:57 +0100 received badge  Popular Question (source)
2019-05-31 15:28:23 +0100 commented answer AttributeError: 'dict' object has no attribute 'solve'

Thank you. Firstly, I make P=[] then (in my code P based on Groebner Basis of ideal, that is why it works)

J=ideal([f for f in P])
J.variety()

And it helps

2019-05-31 15:26:39 +0100 commented question Solving polynoms from dictionary

thank you for attention, I describe it from other side here https://ask.sagemath.org/question/467...

2019-05-30 23:56:09 +0100 asked a question 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)
2019-05-30 21:07:46 +0100 received badge  Editor (source)
2019-05-30 20:46:00 +0100 received badge  Scholar (source)
2019-05-30 20:45:02 +0100 asked a question Solving polynoms from dictionary

I have a dictionary, which I feel from for, is there any way, to solve polynomials from D?

D = {}
for i in range (len(G)):
    if (G[i].degree() < num):
        j = j+1
        D[j] = G[i]
2019-05-30 14:45:46 +0100 received badge  Supporter (source)
2019-05-30 14:45:43 +0100 commented answer How to create in Sage system of equations using elements from boolean field?

Thank you, it helps:)

2019-05-30 14:31:19 +0100 received badge  Student (source)
2019-05-30 14:28:24 +0100 asked a question 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?