Return a set of symbols contained in self.
(self)
| 730 | return len(found) != 0 |
| 731 | |
| 732 | def symbols(self): |
| 733 | """Return a set of symbols contained in self. |
| 734 | """ |
| 735 | found = set() |
| 736 | |
| 737 | def visit(expr, found=found): |
| 738 | if expr.op is Op.SYMBOL: |
| 739 | found.add(expr) |
| 740 | |
| 741 | self.traverse(visit) |
| 742 | |
| 743 | return found |
| 744 | |
| 745 | def polynomial_atoms(self): |
| 746 | """Return a set of expressions used as atoms in polynomial self. |