JuliaAlgebra / DynamicPolynomials.jl

Multivariate polynomials implementation of commutative and non-commutative variables
Other
60 stars 21 forks source link

"subs" on words with multiple occurences of the same variable #70

Closed David-Berghaus closed 3 years ago

David-Berghaus commented 3 years ago

Calling "subs" on words with multiple occurences of the same variable seems to produce wrong results:

julia> @ncpolyvar y0 y1 x0 x1
(y0, y1, x0, x1)

julia> subs(x1*x0*x1, x0=>y0, x1=>y1)
y1y0x1

I would expect to get "y1y0y1" as a result but somehow "subs" only seems to replace one instance...