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

◆ syzygy()

void M2::ARingRRR::syzygy ( const ElementType & a,
const ElementType & b,
ElementType & x,
ElementType & y ) const
inline

Definition at line 269 of file aring-RRR.hpp.

276 {
277 set_var(x, 0); // set x=1
278 if (!is_zero(b))
279 {
280 set(y, a);
281 negate(y, y);
282 divide(y, y, b);
283 }
284 }
void negate(ElementType &result, const ElementType &a) const
bool is_zero(const ElementType &f) const
Definition aring-RRR.hpp:96
void set(ElementType &result, const ElementType &a) const
void divide(ElementType &result, const ElementType &a, const ElementType &b) const
void set_var(ElementType &result, int v) const
volatile int x

References divide(), is_zero(), negate(), set(), set_var(), and x.