nf.h – number fields

type nf_struct
type nf_t

Represents a number field.

void nf_init(nf_t nf, const fmpq_poly_t pol)

Perform basic initialisation of a number field (for element arithmetic) given a defining polynomial over \(\mathbb{Q}\).

void nf_clear(nf_t nf)

Release resources used by a number field object. The object will need initialisation again before it can be used.