Macaulay2 Engine
Loading...
Searching...
No Matches
aring-CCi.cpp
Go to the documentation of this file.
1#include "aring-CCi.hpp"
2
3namespace M2 {
4
5void ARingCCi::text_out(buffer &o) const { o << "ACCi_" << mPrecision; }
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 << &ap;
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:
M2::ARingCCi — certified complex intervals as Cartesian rectangles of MPFI intervals.
void elem_text_out(buffer &o, const ElementType &a, bool p_one, bool p_plus, bool p_parens) const
Definition aring-CCi.cpp:6
unsigned long mPrecision
void text_out(buffer &o) const
Definition aring-CCi.cpp:5
Definition aring-CC.cpp:3
__mpfi_struct im
Definition ringelem.hpp:74
__mpfi_struct re
Definition ringelem.hpp:73