UserManual

algfield

algfield module provides algebraic number fields.

Functions

changetype(a, polynomial)

Change a integer a to be an element of field defined by polynomial

disc(A)

Compute the discriminant of a_i, where A=[a_1,...,a_n]

qpoly(coeffs)

Return a rational coefficient polynomial constructed from given coeffs. coeffs is a list of coefficients in ascending order.

zpoly(coeffs)

Return an integer coefficient polynomial constructed from given coeffs. coeffs is a list of coefficients in ascending order.

Classes

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.

NumberField

BasicAlgNumber

MatAlgNumber

ApproxAlgNumber