I think you should do a Sage tutorial before asking more questions. The message is "NameError: name 'p' is not defined", which means precisely what it says: p is not defined. You can't define GF(p) in general, you need to specify a prime (for example 17) and construct GF(17). Or
sage: p=17 sage: GF(p) ... Or you could write a function which takes p as input and returns the intersection of the subspaces as output. But I think you need to learn some Python and Sage basics first. John On Tuesday, May 13, 2014 10:26:40 PM UTC-7, nas mer wrote: > > I attach the program of intersection in sage. > > > On Wed, May 14, 2014 at 9:52 AM, nas mer <[email protected] <javascript:> > > 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] <javascript:>>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.
