First time here? Check out the FAQ!
answered 2016-10-11 01:32:40 +0100
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