Create a new printer, or apply this patch:
diff --git a/sympy/printing/str.py b/sympy/printing/str.py
index 398c3cb..0f4391e 100644
--- a/sympy/printing/str.py
+++ b/sympy/printing/str.py
@@ -46,6 +46,9 @@ def emptyPrinter(self, expr):
else:
return str(expr)
+ def _print_And(self, expr):
+ return "%s & %s" % (expr.args[0], expr.args[1])
+
def _print_Add(self, expr):
args = list(expr.args)
>
> AND!
>
> why is the shift operator "<<" and ">>" overriden by Implies or how
> can i symbolicaly shift a number?
I didn't know that >> is overriden as Implies. I think it's not such a
good idea, I think we should stick to python interpretation of things
whenever possible. As to symbolically shifting a number, I think it's
not yet implemented.
All, what do you think?
Ondrej