Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not sure if this is what you're looking for , but you can try something like this :

For Q(\sqrt{2}) :
sage: K.<t> = NumberField(x^2-2)
sage: K.disc()
8