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.
polyr poly_hyp(int n, prec_t prec)
Computes the n-th hyperbolic polynomial, the n-th image of 0 under the iteration of z->z^2+c....
polyr polyr_prod(polyr P, polyr Q)
Computes P*Q.
polyr polyr_new(deg_t degree, prec_t prec)
Returns a new real polynomial of given degree, with coefficients of precision prec.
polyr_struct * polyr
Convenience pointer to polyr_struct.
polyr poly_leg(int n, prec_t prec)
Computes the Legendre polynomial of degree n.
polyr_struct polyr_t[1]
Practical wrapper for polyr_struct.
polyr poly_cheb(int n, prec_t prec)
Computes the Chebyshev polynomial of degree n.
polyr polyr_diff(polyr P, polyr Q)
Computes P-Q.
polyr polyr_derivative(polyr P)
Computes the derivative of P.
bool polyr_set(polyr P, mpfr_t coeff, deg_t ind)
Sets the coefficient of the polynomial P corresponding to the power ind to coeff.
polyr poly_her(int n, prec_t prec)
Computes the Hermite polynomial of degree n.
bool polyr_seti(polyr P, long coeff, deg_t ind)
Sets the coefficient of the polynomial P corresponding to the power ind to coeff.
polyr poly_lag(int n, prec_t prec)
Computes the Laguerre polynomial of degree n.
bool polyr_eval(mpfr_t res, polyr P, mpfr_t x)
Evaluates P(x) using Horner's method.
polyr polyr_sqr(polyr P)
Computes the square of P.
bool polyr_eval_c(comp res, polyr P, comp z)
Evaluates P(z) using Horner's method.
polyr polyr_sum(polyr P, polyr Q)
Computes P+Q.
bool polyr_free(polyr P)
Frees all the memory used by the polynomial P, assuming the struct has been allocated with malloc(),...
Polynomial with multi-precision floating point complex coefficients.
mpfr_ptr a
the coefficients
prec_t prec
the precision of the coefficients, in bits
bool modified
the status of the coefficients
mpfr_t buf2
another buffer
deg_t degree
the degree of the polynomial