NumberFieldSignature
NumberFieldSignature[a] gives the signature of the field ℚ[a] generated by the algebraic number a.
Examples
Get the signature of a number field:
NumberFieldSignature[Sqrt[2]]
(* {2, 0} *)Please visit the official Wolfram Language Reference for more details.