Macaulay2 Engine
Loading...
Searching...
No Matches
◆
make_monic()
void res2_poly::make_monic
(
res2term
*&
f
)
const
Definition at line
139
of file
res-a0-poly.cpp
.
140
{
141
if
(f ==
nullptr
)
return
;
142
ring_elem c_inv =
K
->invert(f->
coeff
);
143
144
for
(res2term *tm = f; tm !=
nullptr
; tm = tm->next)
145
K
->mult_to(tm->coeff, c_inv);
146
147
K
->remove(c_inv);
148
}
res2_poly::K
const Ring * K
Definition
res-a0-poly.hpp:22
res2term::coeff
ring_elem coeff
Definition
res-a0-poly.hpp:14
References
res2term::coeff
,
K
, and
res2term::next
.
res2_poly
Generated on
for Macaulay2 Engine by
1.15.0