Definition of MPFR complex numbers.
comp_struct comp[1]
Practical wrapper for comp_struct.
Definition of basic types.
ulong deg_t
The integer number type to use for polynomial degrees and indexes.
ulong prec_t
The integer number type to use for polynomial degrees and indexes.
poly poly_derivative(poly P)
Computes the derivative of P.
poly poly_sqr(poly P)
Computes the square of P.
bool poly_eval(comp res, poly P, comp z)
Evaluates P(z) using Horner's method.
bool poly_set(poly P, comp coeff, deg_t ind)
Sets the coefficient of the polynomial P corresponding to the power ind to coeff.
poly poly_diff(poly P, poly Q)
Computes P-Q.
poly_struct * poly
Convenience pointer to poly_struct.
bool poly_eval_r(comp res, poly P, mpfr_t x)
Evaluates P(x) using Horner's method.
poly poly_from_roots(comp_ptr roots, deg_t degree, prec_t prec)
Returns a new complex polynomial given the list of its roots, with coefficients of precision prec.
poly poly_prod(poly P, poly Q)
Computes P*Q.
poly poly_sum(poly P, poly Q)
Computes P+Q.
poly_struct poly_t[1]
Practical wrapper for poly_struct.
poly poly_new(deg_t degree, prec_t prec)
Returns a new complex polynomial of given degree, with coefficients of precision prec.
bool poly_free(poly P)
Frees all the memory used by the polynomial P, assuming the struct has been allocated with malloc(),...
Multi-precision floating point complex numbers.
Polynomial with multi-precision floating point complex coefficients.
prec_t prec
the precision of the coefficients, in bits
bool modified
the status of the coefficients
mpfr_t buf2
another buffer
comp_ptr a
the coefficients
deg_t degree
the degree of the polynomial