algfield module provides algebraic number fields.
Change a integer a to be an element of field defined by polynomial
Compute the discriminant of a_i, where A=[a_1,...,a_n]
Return a rational coefficient polynomial constructed from given coeffs. coeffs is a list of coefficients in ascending order.
Return an integer coefficient polynomial constructed from given coeffs. coeffs is a list of coefficients in ascending order.
number field is defined by polynomial. Then algebraic number is defined as an element the number field. So number field has an attribute polynomial and algebraic number has two attributes, polynomial and field.