Hi,

On Thu, Jun 18, 2009 at 2:09 AM, bonzerpotato<bonzerpot...@hotmail.com> wrote:
>
> 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?

<SNIP>

This should do the trick:

[mv...@sage ~]$ sage
----------------------------------------------------------------------
| Sage Version 4.0.1, Release Date: 2009-06-06                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: K.<q> = NumberField(x^2 + 2); K
Number Field in q with defining polynomial x^2 + 2
sage: B.<x> = K["x"]
sage: A.<c> = K.extension(x^3 + (q^3)*x^2 + (2*q^2)*x - 3*q); A
Number Field in c with defining polynomial x^3 - 2*q*x^2 - 4*x - 3*q
over its base field
sage: A.relative_polynomial()
x^3 - 2*q*x^2 - 4*x - 3*q
sage: A.absolute_polynomial()
x^6 + 40*x^2 + 18

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
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/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to