Skip to content

NumberFieldIntegralBasis ​

A Z\mathbb{Z}-basis of the ring of integers of Q(a)\mathbb{Q}(a), written on aa's powers as Wolfram writes it.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageNumberFieldIntegralBasis✓
NumberFieldIntegralBasis(a)a basis of OK\mathcal{O}_K: the ii-th element ai/dia^i/d_i plus lower powers, each lower coefficient reduced
Typed signatures
TypePackageApplies
(number) -> listnumber-theoryalways

Domain: Number theory

Details
  • The basis is triangular on 1,a,…,an−11, a, \ldots, a^{n-1}, as Wolfram's is; any other basis differs by a matrix in GLn(Z)\mathrm{GL}_n(\mathbb{Z})

Examples

Basic #

Dedekind's: 1,θ,(θ+θ2)/21, \theta, (\theta + \theta^2)/2

live ↗
InNumberFieldIntegralBasis(PolynomialRoot(x3−x2−2x−8,1))\mathrm{NumberFieldIntegralBasis}(\mathrm{PolynomialRoot}(x^3-x^2-2x-8, 1))Out[1,PolynomialRoot(x3−x2−2x−8,1),12(PolynomialRoot(x3−x2−2x−8,1))+12(PolynomialRoot(x3−x2−2x−8,1)2)]\bigl\lbrack1, \mathrm{PolynomialRoot}(x^3-x^2-2x-8, 1), \frac{1}{2}(\mathrm{PolynomialRoot}(x^3-x^2-2x-8, 1))+\frac{1}{2}({\mathrm{PolynomialRoot}(x^3-x^2-2x-8, 1)}^2)\bigr\rbrack

1,θ,(1+θ+θ2)/31, \theta, (1 + \theta + \theta^2)/3

live ↗
InNumberFieldIntegralBasis(193)\mathrm{NumberFieldIntegralBasis}(\sqrt[3]{19})Out[1,193,13+1933+19233]\bigl\lbrack1, \sqrt[3]{19}, \frac{1}{3}+\frac{\sqrt[3]{19}}{3}+\frac{19^{\frac{2}{3}}}{3}\bigr\rbrack

1,ω1, \omega

live ↗
InNumberFieldIntegralBasis(−3)\mathrm{NumberFieldIntegralBasis}(\sqrt{-3})Out[1,12+−32]\bigl\lbrack1, \frac{1}{2}+\frac{\sqrt{-3}}{2}\bigr\rbrack
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: NumberFieldDiscriminant, AlgebraicIntegers