| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.