NumberFieldFundamentalUnits
NumberFieldFundamentalUnits[a] gives a list of fundamental units for the field ℚ[a] generated by the algebraic number a.
Examples
Find fundamental units for a quadratic field:
NumberFieldFundamentalUnits[Sqrt[2]]
(* {1 + Sqrt[2]} *)For a cubic field:
NumberFieldFundamentalUnits[2^(1/3)]
(* {-1 + 2^(1/3)} *)Please visit the official Wolfram Language Reference for more details.