1166{
1167 if (
K_->get_precision() > 0)
1168 {
1169 throw exc::engine_error(
1170 "polynomial division not yet implemented for RR or CC coefficients");
1171 }
1172 Nterm *q, *r;
1175 {
1176
1179 }
1181 {
1184 }
1185 else
1186 {
1189
1190 if (has_negative_exponent_variables and not has_vars_lt_one)
1191 {
1192 Nterm* f1 = f;
1193 Nterm* g1 = g;
1195 quot = q;
1196 return r;
1197 }
1198 else if (has_vars_lt_one)
1199 {
1200 Nterm *f1 = f;
1201 Nterm *g1 = g;
1203 quot = q;
1204 return r;
1205 }
1206 else
1207 {
1209 quot = q;
1211 }
1212 }
1215}
int numNonTermOrderVariables() const
int numInvertibleVariables() const
virtual ring_elem from_long(long n) const
Nterm * division_algorithm_with_laurent_variables(Nterm *f, Nterm *g, Nterm *") const
virtual ring_elem copy(const ring_elem f) const
Nterm * division_algorithm(Nterm *f, Nterm *g, Nterm *") const
Nterm * powerseries_division_algorithm(Nterm *f, Nterm *g, Nterm *") const
virtual bool is_zero(const ring_elem f) const
virtual const Monoid * getMonoid() const
const mpreal rem(const mpreal &x, const mpreal &y, mp_rnd_t rnd_mode=mpreal::get_default_rnd())