ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 11 Oct 2016 01:32:40 +0200How to find the discriminant of a number field ?https://ask.sagemath.org/question/35093/how-to-find-the-discriminant-of-a-number-field/I want to find the discriminant of the number field $\mathbb{Q}(\sqrt2)$ and the field $\mathbb{Q}(\sqrt2,i)$ and $\mathbb{Q}(\sqrt3+i)$ ?
How to do this ?Sat, 08 Oct 2016 21:54:40 +0200https://ask.sagemath.org/question/35093/how-to-find-the-discriminant-of-a-number-field/Answer by kcrisman for <p>I want to find the discriminant of the number field $\mathbb{Q}(\sqrt2)$ and the field $\mathbb{Q}(\sqrt2,i)$ and $\mathbb{Q}(\sqrt3+i)$ ?</p>
<p>How to do this ?</p>
https://ask.sagemath.org/question/35093/how-to-find-the-discriminant-of-a-number-field/?answer=35094#post-id-35094Is [this documentation](http://doc.sagemath.org/html/en/reference/number_fields/sage/rings/number_field/number_field.html#sage.rings.number_field.number_field.NumberField_generic.discriminant) helpful?Sun, 09 Oct 2016 03:39:39 +0200https://ask.sagemath.org/question/35093/how-to-find-the-discriminant-of-a-number-field/?answer=35094#post-id-35094Answer by Sha for <p>I want to find the discriminant of the number field $\mathbb{Q}(\sqrt2)$ and the field $\mathbb{Q}(\sqrt2,i)$ and $\mathbb{Q}(\sqrt3+i)$ ?</p>
<p>How to do this ?</p>
https://ask.sagemath.org/question/35093/how-to-find-the-discriminant-of-a-number-field/?answer=35117#post-id-35117Not 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
Tue, 11 Oct 2016 01:32:40 +0200https://ask.sagemath.org/question/35093/how-to-find-the-discriminant-of-a-number-field/?answer=35117#post-id-35117