Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

pretty printing of TransformationSet

  • Loading branch information...
commit c907960a2aa7f94c12478878ffbc48467a0566e9 1 parent dd4aa60
Matthew Rocklin authored April 19, 2012

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  sympy/printing/pretty/pretty.py
9  sympy/printing/pretty/pretty.py
@@ -1172,6 +1172,15 @@ def _print_Union(self, u):
1172 1172
         return self._print_seq(u.args, None, None, union_delimiter,
1173 1173
              parenthesize = lambda set:set.is_ProductSet or set.is_Intersection)
1174 1174
 
  1175
+    def _print_TransformationSet(self, ts):
  1176
+        variables = self._print_seq(ts.lamda.variables)
  1177
+        expr = self._print(ts.lamda.expr)
  1178
+        bar = self._print("|")
  1179
+        inn = self._print("in")
  1180
+        base = self._print(ts.base_set)
  1181
+
  1182
+        return self._print_seq((expr, bar, variables, inn, base), "{", "}", ' ')
  1183
+
1175 1184
     def _print_seq(self, seq, left=None, right=None, delimiter=', ',
1176 1185
             parenthesize=lambda x: False):
1177 1186
         s = None

0 notes on commit c907960

Please sign in to comment.
Something went wrong with that request. Please try again.