Split into expressions containing and not containing specified operands/operators.
(self, *vars)
| 257 | class NonlinearOperator(Future): |
| 258 | |
| 259 | def split(self, *vars): |
| 260 | """Split into expressions containing and not containing specified operands/operators.""" |
| 261 | if self.has(*vars): |
| 262 | return (self, 0) |
| 263 | else: |
| 264 | return (0, self) |
| 265 | |
| 266 | def expand(self, *vars): |
| 267 | """Expand expression over specified variables.""" |