+ def _repr_latex_(self):
+ if self.isempty():
+ return '$\\emptyset$'
+ elif self.isuniverse():
+ return '$\\Omega$'
+ else:
+ strings = []
+ for equality in self.equalities:
+ strings.append('{} = 0'.format(equality._repr_latex_().strip('$')))
+ for inequality in self.inequalities:
+ strings.append('{} \\ge 0'.format(inequality._repr_latex_().strip('$')))
+ return '${}$'.format(' \\wedge '.join(strings))
+