Kernel: Python 3
expression
.split()
Split an expression into a polynomial of rational expressions, i.e., when an expression is actually a sum of expressions, breaks it in smaller expressions. This is used to implement "breaking derivatives/expansions".
See also:
References:
angrand.2010.jalc introduces
split
as "breaking" an expression, noted . It was renamedsplit
in Vcsn to avoid clashes with thebreak
keyword in both C++ and Python.
Examples
In [1]:
In [2]:
Note that the weights (2 and 3) are on the level of the polynomial: the expressions are and .
It also distributes when the top-level is a multiplication, or a conjunction, whose first term is a sum.
In [3]:
In [4]:
In [5]:
In [6]: