255{
256 if (f == nullptr)
257 {
258 o << "0";
259 return;
260 }
261
262 bool p_one = false;
263 bool p_parens = true;
264 bool p_plus = false;
265 for (const res2term *t = f; t != nullptr; t = t->next)
266 {
267 int isone =
M->is_one(t->monom);
268 K->elem_text_out(o, t->coeff, p_one, p_plus, p_parens);
269 if (!isone)
M->elem_text_out(o, t->monom, p_one);
270 o << "<" << t->comp->me << ">";
271 p_plus = true;
272 }
273}