29 #define POWSFR_DIRECT_POWERS
31 #ifdef POWSFR_DIRECT_POWERS
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.
coeff_t powsfr_pow_once(powsfr xn, deg_t pow)
Computes x^pow using repeated squares method and the cache of previously computed powers.
bool powsfr_free(powsfr xn)
Frees all the memory used by the buffer xn, assuming the struct has been allocated with malloc(),...
coeff_t powsfr_pow(powsfr xn, deg_t pow)
Computes x^pow using repeated squares method and the cache of previously computed powers.
bool powsfr_set(powsfr xn, coeff_t x)
Sets the real number of which the powers will be computed by the buffer xn.
powsfr powsfr_new(deg_t size)
Returns a new buffer of powers of machine real numbers, with initial storage space for size powers.
powsfr_struct * powsfr
Convenience pointer to eval_struct.
powsfr_struct powsfr_t[1]
Practical wrapper for powsfr_struct.
The powers of the real number x using machine floating point numbers.
bool inited
the status of the value x