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

◆ elem_text_out()

void M2::ARingCCi::elem_text_out ( buffer & o,
const ElementType & a,
bool p_one,
bool p_plus,
bool p_parens ) const

Definition at line 6 of file aring-CCi.cpp.

11{
12
13 if (p_plus)
14 o << "+";
15
16 if (p_parens && !mpfi_is_zero(&ap.re) && !mpfi_is_zero(&ap.im))
17 o << "(" << &ap << ")";
18 else if (p_one || mpfi_cmp_si(&ap.re, 1) != 0 || !mpfi_is_zero(&ap.im))
19 o << &ap;
20}

References cci_struct::im, and cci_struct::re.