]> www.ginac.de Git - ginac.git/blobdiff - ginac/operators.cpp
* Methods of class ex which do absolutely nothing than type dispatch should
[ginac.git] / ginac / operators.cpp
index 4e5781a692d03da8fedb28799e966dfdc3fe7b23..ee240174f6ad0f5cac9a5daee41d69316e0ecb29 100644 (file)
@@ -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;
 }