Hi,
I need to solve a system of linear equations [over finite fields] which are 
obtained from system of polynomials by l substitution   of some 
variables.   
For example:   If we start with F[x1,x2,x3] = x1*x2+x3+1 and let x1 = 1 
then we get
L[x2,x3] = F(1,x2,x3) = x2+x3+1 --> a linear equation. 
Need to solve L == constant over a finite field Fp.

I tried the following method. But no luck.

##--------------------------------------------------------
n=10
F = GF(7)
Rx=PolynomialRing(F,n,'x')
X=Rx.gens()
f = x2+ x1 * x5 - 1
print(f)
v=list(X)
v[1]=1
v[2]=5
print(f(v))
eqns = [f(v) == 1]
sol = solve_mod(eqns, 7)
print(sol)
##------------------------------------------------------
Getting error:

   - AttributeError: 'bool' object has no attribute 'lhs' 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e9126ffc-ca3a-441f-8417-69f6232639f9n%40googlegroups.com.

Reply via email to