31 #define POWSR_DIRECT_POWERS
33 #ifdef POWSR_DIRECT_POWERS
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.
mpfr_ptr powsr_pow_once(powsr xn, deg_t pow)
Computes x^pow using repeated squares method and the cache of previously computed powers.
powsr_struct powsr_t[1]
Practical wrapper for powsr_struct.
powsr_struct * powsr
Convenience pointer to eval_struct.
bool powsr_set(powsr xn, mpfr_t x)
Sets the real number of which the powers will be computed by the buffer xn.
bool powsr_free(powsr xn)
Frees all the memory used by the buffer xn, assuming the struct has been allocated with malloc(),...
mpfr_ptr powsr_pow(powsr xn, deg_t pow)
Computes x^pow using repeated squares method and the cache of previously computed powers.
powsr powsr_new(prec_t prec, deg_t size)
Returns a new buffer of powers of real numbers of precision prec, with initial storage space for size...
The powers of the real number x using multi-precision floating point numbers.
prec_t prec
the precision of the powers of x, in bits
bool inited
the status of the value x