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

◆ syzygy()

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

Definition at line 355 of file aring-RRi.hpp.

362 {
363 set_var(x, 0); // set x=1
364 if (!is_zero(b))
365 {
366 set(y, a);
367 negate(y, y);
368 divide(y, y, b);
369 }
370 }
void divide(ElementType &result, const ElementType &a, const ElementType &b) const
bool is_zero(const ElementType &f) const
Definition aring-RRi.hpp:95
void set_var(ElementType &result, int v) const
void negate(ElementType &result, const ElementType &a) const
void set(ElementType &result, const ElementType &a) const
volatile int x

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