Macaulay2 Engine
Loading...
Searching...
No Matches
aring-CCi.cpp
Go to the documentation of this file.
1
#include "
aring-CCi.hpp
"
2
3
namespace
M2
{
4
5
void
ARingCCi::text_out
(
buffer
&o)
const
{ o <<
"ACCi_"
<<
mPrecision
; }
6
void
ARingCCi::elem_text_out
(
buffer
&o,
7
const
ElementType
&ap,
8
bool
p_one,
9
bool
p_plus,
10
bool
p_parens)
const
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 << ≈
20
}
21
22
};
// end namespace M2
23
24
// Local Variables:
25
// compile-command: "make -C $M2BUILDDIR/Macaulay2/e "
26
// indent-tabs-mode: nil
27
// End:
aring-CCi.hpp
M2::ARingCCi — certified complex intervals as Cartesian rectangles of MPFI intervals.
M2::ARingCCi::elem_text_out
void elem_text_out(buffer &o, const ElementType &a, bool p_one, bool p_plus, bool p_parens) const
Definition
aring-CCi.cpp:6
M2::ARingCCi::mPrecision
unsigned long mPrecision
Definition
aring-CCi.hpp:611
M2::ARingCCi::ElementType
elem ElementType
Definition
aring-CCi.hpp:81
M2::ARingCCi::text_out
void text_out(buffer &o) const
Definition
aring-CCi.cpp:5
buffer
Definition
buffer.hpp:55
M2
Definition
aring-CC.cpp:3
cci_struct::im
__mpfi_struct im
Definition
ringelem.hpp:74
cci_struct::re
__mpfi_struct re
Definition
ringelem.hpp:73
Macaulay2
e
aring-CCi.cpp
Generated on
for Macaulay2 Engine by
1.15.0