Function rc_poly_power#
Defined in File polynomial.h
Function Documentation#
-
int rc_poly_power(rc_vector_t a, int n, rc_vector_t *b)#
Raises a polynomial a to itself n times where n is greater than or equal to 0.
Places the result in vector b, any existing memory allocated for b is freed and its contents are lost. Returns 0 on success and -1 on failure.
- Parameters:
a – [in] Initial coefficients
n – [in] Power, must be >=0
b – [out] resulting coefficients
- Returns:
Returns 0 on success or -1 on failure.