I attach the program of intersection in sage.
On Wed, May 14, 2014 at 9:52 AM, nas mer <[email protected]> wrote:
> Hi
> Thank you
> I attach the program of intersection in sage.
> please, look at the attach file.
> Best regard
>
>
> On Tue, May 13, 2014 at 10:49 PM, <[email protected]> wrote:
>
>> It is known that a polynomial x^2 +x +1= 0 has a solution in Zp if and
>> only if -3 is a square root
>> in Zp, which is if and only if p=1.mod 6. the splitting field Zp(y1)
>> where y1 is a solution of the polynomial x^2 +x +1= 0 .
>> gle.com/d/optout <https://groups.google.com/d/optout>.
>>
>
>
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
sage: K = GF(p)
sage: R.<x> = K[]
sage: F = K.extension(x^2+x+1, 'a')
sage: F
sage: y1=CC(-0.5000,0.8660)
sage: print(y1)
sage: V = F^9
sage: v1 = vector(F, [0,0,0,-y1-1,1,0,0,0,0])
sage: v2 = vector(F, [y1,-y1,-1,1,0,y1,1,0,0])
sage: v3 = vector(F, [0,y1,-y1,0,0,0,0,0,1])
sage: v4 = vector(F, [y1,0,0,0,0,0,0,1,0])
sage: W = V.span([v1, v2, v3, v4])
sage: W
sage: U = F^9
sage: u1 = vector(F, [0,0,1,0,0,0,1,0,0])
sage: u2 = vector(F, [0,0,0,1,0,1,0,0,0])
sage: u3 = vector(F, [1,0,0,0,0,0,0,0,0])
sage: u4 = vector(F, [0,0,0,0,0,0,0,0,1])
sage: u5 = vector(F, [0,0,0,0,1,0,0,0,0])
sage: u6 = vector(F, [0,1,0,0,0,0,0,1,0])
sage: E = U.span([u1, u2, u3, u4, u5, u6])
sage: E
____________________________________________________
Ans
Traceback (click to the left of this block for traceback)
...
NameError: name 'p' is not defined
-0.500000000000000 + 0.866000000000000*I
...
TypeError: unable to coerce