Kernel: Python 3
expansion
.rweight(weight)
The right scalar product of an expansion by a weight.
See also:
Examples
In [1]:
Note that left-scalar product and right-scalar product are very different: the left-scalar product changes the weights in the polynomials, while the right-scalar product changes the expressions.
In [2]:
In [3]:
Instead of x.rweight(w)
, you may write x * w
.
In [4]:
You may even run the simpler:
In [5]:
The expansion of a scalar product is the scalar product of the expansion:
In [6]: