Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pretty printing of TransformationSet

  • Loading branch information...
commit c907960a2aa7f94c12478878ffbc48467a0566e9 1 parent dd4aa60
@mrocklin mrocklin authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 sympy/printing/pretty/pretty.py
View
9 sympy/printing/pretty/pretty.py
@@ -1172,6 +1172,15 @@ def _print_Union(self, u):
return self._print_seq(u.args, None, None, union_delimiter,
parenthesize = lambda set:set.is_ProductSet or set.is_Intersection)
+ def _print_TransformationSet(self, ts):
+ variables = self._print_seq(ts.lamda.variables)
+ expr = self._print(ts.lamda.expr)
+ bar = self._print("|")
+ inn = self._print("in")
+ base = self._print(ts.base_set)
+
+ return self._print_seq((expr, bar, variables, inn, base), "{", "}", ' ')
+
def _print_seq(self, seq, left=None, right=None, delimiter=', ',
parenthesize=lambda x: False):
s = None
Please sign in to comment.
Something went wrong with that request. Please try again.