Macaulay2 Engine
Loading...
Searching...
No Matches

◆ subtract_multiple_to()

void res2_poly::subtract_multiple_to ( res2term *& f,
ring_elem c,
const int * m,
const res2term * g ) const

Definition at line 217 of file res-a0-poly.cpp.

222{
223 ring_elem minus_c = K->negate(c);
224 res2term *h = mult_by_term(g, minus_c, m);
225 add_to(f, h);
226 K->remove(minus_c);
227}
void add_to(res2term *&f, res2term *&g) const
const Ring * K
res2term * mult_by_term(const res2term *f, ring_elem c, const int *m) const

References add_to(), K, and mult_by_term().