X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Foperators.cpp;h=ee240174f6ad0f5cac9a5daee41d69316e0ecb29;hb=d508ca04e9c2f4ee103c9f21f33a98c87116df13;hp=4e5781a692d03da8fedb28799e966dfdc3fe7b23;hpb=4e3a4ac2bcb0837611ea31bc8fc05d84a20c33ac;p=ginac.git diff --git a/ginac/operators.cpp b/ginac/operators.cpp index 4e5781a6..ee240174 100644 --- a/ginac/operators.cpp +++ b/ginac/operators.cpp @@ -24,6 +24,7 @@ #include "numeric.h" #include "power.h" #include "relational.h" +#include "print.h" #include "debugmsg.h" #include "utils.h" @@ -55,12 +56,6 @@ ex operator/(const ex & lh, const ex & rh) return lh.exmul(power(rh,_ex_1())); } -ex operator%(const ex & lh, const ex & rh) -{ - debugmsg("operator%(ex,ex)",LOGLEVEL_OPERATOR); - return lh.exncmul(rh); -} - // binary arithmetic operators numeric with numeric @@ -115,12 +110,6 @@ const ex & operator/=(ex & lh, const ex & rh) return (lh=lh.exmul(power(rh,_ex_1()))); } -const ex & operator%=(ex & lh, const ex & rh) -{ - debugmsg("operator%=(ex,ex)",LOGLEVEL_OPERATOR); - return (lh=lh%rh); -} - // binary arithmetic assignment operators with numeric @@ -252,7 +241,7 @@ relational operator>=(const ex & lh, const ex & rh) std::ostream & operator<<(std::ostream & os, const ex & e) { - e.print(os); + e.print(print_context(os)); return os; }