X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fexpair.h;h=74744e0213e3d7f1ea65af0936412602fa76ca8a;hb=85ce9664ddba79c28a6945b1e5b4e2b71f77cb51;hp=2f34b4b8795afc17f40526f2c7709d7f6deb049b;hpb=4e3a4ac2bcb0837611ea31bc8fc05d84a20c33ac;p=ginac.git diff --git a/ginac/expair.h b/ginac/expair.h index 2f34b4b8..74744e02 100644 --- a/ginac/expair.h +++ b/ginac/expair.h @@ -25,6 +25,7 @@ #include "ex.h" #include "numeric.h" +#include "print.h" namespace GiNaC { @@ -81,14 +82,12 @@ public: return coeff.compare(other.coeff); } - /** Output to ostream in ugly raw format. */ - void printraw(std::ostream & os) const + void print(std::ostream & os) const { - os << "expair("; - rest.printraw(os); - os << ","; - coeff.printraw(os); - os << ")"; + os << "expair:"; + print_tree c(os); + rest.print(c, c.delta_indent); + coeff.print(c, c.delta_indent); } /** True if this is of the form (numeric,ex(1)). */