Skip to content

AlgebraicIntegerQ ​

Whether the algebraic number aa is an algebraic integer: a root of a monic polynomial over Z\mathbb{Z}.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageAlgebraicIntegerQ✓
AlgebraicIntegerQ(a)whether aa is an algebraic integer; unevaluated when aa isn't read as an algebraic number
Typed signatures
TypePackageApplies
(number) -> booleannumber-theoryalways

Domain: Number theory

Details
  • Wolfram answers False for anything it doesn't recognize as an algebraic integer, a symbol included; this stays unevaluated instead

Examples

Basic #

(1+−3)/2(1 + \sqrt{-3})/2 is integral: −3≡1(mod4)-3 \equiv 1 \pmod 4

live ↗
InAlgebraicIntegerQ(1+−32)\mathrm{AlgebraicIntegerQ}(\frac{1+\sqrt{-3}}{2})OutTrue\mathrm{True}

but (1+−5)/2(1 + \sqrt{-5})/2 is not: −5≢1(mod4)-5 \not\equiv 1 \pmod 4

live ↗
InAlgebraicIntegerQ(1+−52)\mathrm{AlgebraicIntegerQ}(\frac{1+\sqrt{-5}}{2})OutFalse\mathrm{False}

(1+193+1932)/3(1 + \sqrt[3]{19} + \sqrt[3]{19}^2)/3 is integral, since 19≡1(mod9)19 \equiv 1 \pmod 9

live ↗
InAlgebraicIntegerQ(13(1+193+1923))\mathrm{AlgebraicIntegerQ}(\frac{1}{3}(1+\sqrt[3]{19}+19^{\frac{2}{3}}))OutTrue\mathrm{True}
About
Examples3
Checked againstWolfram Language 3 agree
CrosswalkWolfram Language

Implementation

primitive · kernela kernel — an algorithm over mutable state that would not be readable as a tree

nativeenginetypescriptpackages/ce-patches/src/compute-engine/library/algebraic-numbers.ts
mappedwolframpackages/oracle/src/mappings.ts

See also: MinimalPolynomial, AlgebraicIntegers