Algebraic number (source code)

= Algebraic number
{wiki}

An <algebraic number> is a <complex number> satisfying a nonzero <polynomial equation> with <coefficients> in the <rational numbers>, or equivalently with <coefficients> in the <integers> after clearing denominators. For instance, $\sqrt2$ satisfies $X^2-2=0$ and $i$ satisfies $X^2+1=0$. Every <rational number> $a/b$ is algebraic, since $bX-a$ vanishes at it.<A Computational Introduction to Number Theory and Algebra by Victor Shoup>[§16.6, algebraic and transcendental elements]{ref}

The monic <irreducible polynomial> over $\mathbb Q$ that vanishes at an <algebraic number> is its <minimal polynomial>; its degree measures the number of independent rational coordinates needed in the <simple field extension> it generates. Thus $\mathbb Q(\sqrt2)$ has <basis> $1,\sqrt2$. An <algebraic integer> has the stronger requirement of satisfying a monic <polynomial> with <coefficients> in the <integers>: $1/2$ is algebraic but is not an <algebraic integer>.