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

◆ syzygy()

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

Definition at line 511 of file aring-CCi.hpp.

518 {
519 set_var(x, 0); // set x=1
520 if (!is_zero(b))
521 {
522 set(y, a);
523 negate(y, y);
524 divide(y, y, b);
525 }
526 }
void set_var(ElementType &result, int v) const
void set(ElementType &result, const ElementType &a) const
void negate(ElementType &result, const ElementType &a) const
void divide(ElementType &result, const ElementType &a, const ElementType &b) const
bool is_zero(const ElementType &f) const
volatile int x

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