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

◆ subtract_multiple_to()

void res_poly::subtract_multiple_to ( resterm *& f,
ring_elem c,
const int * m,
const resterm * g ) const

Definition at line 199 of file res-a1-poly.cpp.

204{
205 ring_elem minus_c = K->negate(c);
206 resterm *h = mult_by_term(g, minus_c, m);
207 add_to(f, h);
208 K->remove(minus_c);
209}
resterm * mult_by_term(const resterm *f, ring_elem c, const int *m) const
const Ring * K
void add_to(resterm *&f, resterm *&g) const

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