Function rc_poly_add#

Function Documentation#

int rc_poly_add(rc_vector_t a, rc_vector_t b, rc_vector_t *c)#

Add two polynomials a&b with right justification and place the result in c.

Any existing memory allocated for c is freed and its contents are lost.

Parameters:
  • a[in] First input

  • b[in] second input

  • c[out] output

Returns:

Returns 0 on success and -1 on failure.