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