[sage-support] Re: error finding the units of a number field

2009-06-17 Thread bonzerpotato
thanks! however, not quite there - how do I get the units in terms of q? On Jun 17, 5:46 pm, Minh Nguyen wrote: > Hi, > > On Thu, Jun 18, 2009 at 2:09 AM, bonzerpotato wrote: > > > After creating a number field A as below, when I try to find the units > > it tells me

[sage-support] Re: error finding the units of a number field

2009-06-17 Thread bonzerpotato
ative_polynomial() or L.absolute_polynomial() as appropriate" NotImplementedError: For a relative number field L you must use either L.relative_polynomial() or L.absolute_polynomial() as appropriate which gives the desired error! On Jun 17, 5:33 pm, Minh Nguyen wrote: > On Thu, Jun 18, 2009 at 2:3

[sage-support] Re: error finding the units of a number field

2009-06-17 Thread bonzerpotato
sorry, my typo: L should be K in all instances. however, polynomial is not a typo on my part... maybe on sage's? On Jun 17, 5:26 pm, William Stein wrote: > 2009/6/17 bonzerpotato : > > > > > After creating a number field A as below, when I try to find the units > &

[sage-support] Re: non-integer modulo arithmetic

2009-06-17 Thread bonzerpotato
thanks, all clear now! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/

[sage-support] error finding the units of a number field

2009-06-17 Thread bonzerpotato
After creating a number field A as below, when I try to find the units it tells me I need to use either the relative or absolute polynomial. I want the relative, but how do I implement this? sage: K.=NumberField(x^2 +2); K Number Field in q with defining polynomial x^2 + 2 sage: A.=L.extension(

[sage-support] non-integer modulo arithmetic

2009-06-16 Thread bonzerpotato
Does anyone know how to deal with non-integer modulo arithmetic on sage? What about using mathematica? I'm referring to a situation such as, for p prime, q a p-th root of p, then dealing with an element a of K = Q(q) using a = n mod q, ie there exists x such that a = n + qx, (nhttp://groups.goo