Definition at line 108 of file frac.cpp.
109{
112 {
114 if (
R_->is_equal(y,
R_->one()))
return;
119 if (!c) return;
120
121#if 0
122
123 buffer o;
125 o << "a = ";
127 o << " b = ";
129 o << " gcd = ";
133#endif
135 {
138 }
139
140
141
142 ring_elem ct =
R_->content(
144
145#if 0
147 o << "f->numer = ";
149 o << " f->denom = ";
151 o << " ass= ";
152 R_->getCoefficients()->elem_text_out(o,ct);
155#endif
156
157 if (!
R_->getCoefficients()->is_equal(ct,
R_->getCoefficients()->one()))
158 {
161 }
162 }
163 else
164 {
167 {
172 return;
173 }
179 }
180}
ring_elem set_non_unit_frac(ring_elem top) const
void text_out(buffer &o) const
ring_elem get_value() const
static RingElement * make_raw(const Ring *R, ring_elem f)
const RingElement * rawGCDRingElement(const RingElement *f, const RingElement *g, const RingElement *mipo, const M2_bool inExtension)
References frac_elem::denom, emit(), RingElement::get_value(), RingElement::make_raw(), newline, frac_elem::numer, R_, rawGCDRingElement(), buffer::reset(), set_non_unit_frac(), buffer::str(), RingElement::text_out(), use_gcd_simplify, and x.
Referenced by internal_add_to(), internal_subtract_to(), and make_elem().