Definition of machine complex numbers.
compf_struct compf[1]
Practical wrapper for compf_struct.
Definition of basic types.
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.
bool polyfr_eval_c(compf res, polyfr P, compf z)
Evaluates P(z) using Horner's method.
polyfr polyf_cheb(int n)
Computes the Chebyshev polynomial of degree n.
polyfr polyfr_sqr(polyfr P)
Computes the square of P.
polyfr polyfr_prod(polyfr P, polyfr Q)
Computes P*Q.
polyfr polyfr_diff(polyfr P, polyfr Q)
Computes P-Q.
bool polyfr_set(polyfr P, coeff_t coeff, deg_t ind)
Sets the coefficient corresponding to the power ind to coeff.
polyfr polyfr_sum(polyfr P, polyfr Q)
Computes P+Q.
polyfr polyf_lag(int n)
Computes the Laguerre polynomial of degree n.
polyfr_struct polyfr_t[1]
Practical wrapper for polyfr_struct.
polyfr polyfr_derivative(polyfr P)
Computes the derivative of P.
bool polyfr_free(polyfr P)
Frees all the memory used by the polynomial P, assuming the struct has been allocated with malloc(),...
polyfr polyfr_new(deg_t degree)
Returns a new real polynomial of given degree, with machine floating point coefficients.
polyfr polyf_her(int n)
Computes the Hermite polynomial of degree n.
coeff_t polyfr_get(polyfr P, deg_t ind)
Returns the coefficient corresponding to the power ind.
polyfr polyf_hyp(int n)
Computes the n-th hyperbolic polynomial, the n-th image of 0 under the iteration of z->z^2+c....
polyfr_struct * polyfr
Convenience pointer to polyfr_struct.
polyf polyfr_comp(polyfr P)
Return a complex version of the real polynomial P.
polyfr polyf_leg(int n)
Computes the Legendre polynomial of degree n.
coeff_t polyfr_eval(polyfr P, coeff_t x)
Evaluates P(x) using Horner's method.
Polynomial with machine floating point complex coefficients.
Polynomial with machine floating point real coefficients.
coeff_t * a
the coefficients
bool modified
the status of the coefficients
deg_t degree
the degree of the polynomial