59 #define evalf_lastValError(ev) (ev->valErr)
62 #define evalf_lastDerError(ev) (ev->derErr)
Definition of machine complex numbers.
compf_struct compf[1]
Practical wrapper for compf_struct.
Definition of a concave function computed from the coefficients of some polynomial.
bool evalf_newton_cr(compf nt, evalf ev, coeff_t x)
Computes the Newthon method step of ev->P using the method described in [1].
evalf_struct evalf_t[1]
Practical wrapper for evalf_struct.
bool evalf_val_der_rr(coeff_t *v, coeff_t *d, evalf ev, coeff_t x)
Evaluates ev->Q(x) and ev->Q'(x) using the method described in [1].
bool evalf_val_der(compf v, compf d, evalf ev, compf z)
Evaluates ev->P(z) and ev->P'(z) (or ev->Q(z) and ev->Q'(z)) using the method described in [1].
coeff_t evalf_val_rr(evalf ev, coeff_t x)
Evaluates the real polynomial ev->Q(x) using the method described in [1].
coeff_t evalf_newton_rr(evalf ev, coeff_t x)
Computes the Newthon method step of the real polynomial ev->Q using the method described in [1].
bool evalf_val_der_cc(compf v, compf d, evalf ev, compf z)
Evaluates ev->P(x) and ev->P'(x) using the method described in [1].
bool evalf_val(compf v, evalf ev, compf z)
Evaluates ev->P(z) (or ev->Q(z)) using the method described in [1].
bool evalf_free(evalf ev)
Frees all the memory used by the evaluator ev, assuming the struct has been allocated with malloc(),...
bool evalf_val_der_rc(compf v, compf d, evalf ev, compf z)
Evaluates ev->Q(x) and ev->Q'(x) using the method described in [1].
bool evalf_val_cc(compf v, evalf ev, compf z)
Evaluates ev->P(x) using the method described in [1].
bool evalf_newton_cc(compf nt, evalf ev, compf z)
Computes the Newthon method step of ev->P using the method described in [1].
bool evalf_newton_rc(compf nt, evalf ev, compf z)
Computes the Newthon method step of ev->Q using the method described in [1].
bool evalf_val_cr(compf v, evalf ev, coeff_t x)
Evaluates ev->P(x) using the method described in [1].
bool evalf_analyse_r(evalf ev)
Analyses the real polynomial ev->Q, after some of its coefficients have been changed.
evalf_struct * evalf
Convenience pointer to evalf_struct.
bool evalf_der_cr(compf d, evalf ev, coeff_t x)
Evaluates ev->P'(x) using the method described in [1].
bool evalf_analyse(evalf ev)
Analyses the complex polynomial ev->P, after some of its coefficients have been changed.
bool evalf_der(compf d, evalf ev, compf z)
Evaluates ev->P'(z) (or ev->Q'(z)) using the method described in [1].
bool evalf_der_rc(compf d, evalf ev, compf z)
Evaluates ev->Q'(x) using the method described in [1].
coeff_t evalf_der_rr(evalf ev, coeff_t x)
Evaluates the derivative of real polynomial ev->Q'(x) using the method described in [1].
bool evalf_der_cc(compf d, evalf ev, compf z)
Evaluates ev->P'(x) using the method described in [1].
evalf evalf_new_r(polyfr Q)
Returns a new evaluator of the real polynomial Q.
bool evalf_val_der_cr(compf v, compf d, evalf ev, coeff_t x)
Evaluates ev->P(x) and ev->P'(x) using the method described in [1].
evalf evalf_new(polyf P)
Returns a new evaluator of the complex polynomial P.
bool evalf_newton(compf nt, evalf ev, compf z)
Computes the Newthon method step of ev->P (or ev->Q) using the method described in [1].
bool evalf_val_rc(compf v, evalf ev, compf z)
Evaluates ev->Q(x) using the method described in [1].
Definition of basic types.
double real_t
The machine number type to use for polynomial analysis and preconditionning.
double coeff_t
The machine number type to use for polynomial coefficients and evaluation.
ulong deg_t
The integer number type to use for polynomial degrees and indexes.
Definition of complex polynomials with machine floating point coefficients.
Definition of real polynomials with machine floating point coefficients.
Definition of a buffer for pre-computed powers of a machine complex number.
Definition of a buffer for pre-computed powers of a machine real number.
Description of a concave function computed from the coefficients of some polynomial.
Evaluator of polynomials with machine floating point coefficients.
polyfr Q
the polynomial, with real coefficients
concave f
concave cover of the magnitude of coefficients
powsf zn
powers of a complex argument
real_t derErr
the [approximative] upper bound for the absolute error of the last derivative evaluation,...
polyf P
the polynomial, with complex coefficients
bool real
the type of polynomial to evaluate
real_t ntErr
the [approximative] upper bound for the absolute error of the last Newton term evaluation,...
deg_t terms
the number of polynomial terms computed by the last operation
powsfr xn
powers of a real argument
real_t valErr
the [approximative] upper bound for the absolute error of the last evaluation, in bits
Polynomial with machine floating point complex coefficients.
Polynomial with machine floating point real coefficients.
The powers of the complex number z using machine floating point numbers.
The powers of the real number x using machine floating point numbers.