You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mix of polynomial vars and non commutative polynomials vars causes Stackoverflow Error #401
Warning: detected a stack overflow; program state may be corrupted, so further execution might be unreliable.
ERROR: StackOverflowError:
Stacktrace:
┌ [1] map_exponents(f::Function, m1::DynamicPolynomials.Monomial{…}, m2::DynamicPolynomials.Monomial{…})
│ @ MultivariatePolynomials C:\Users\user\.julia\packages\MultivariatePolynomials\KeIuI\src\monomial.jl:147
╰─────── repeated 79984 times
Some type information was truncated. Use `show(err)` to see complete types.
I expect to be able to get to build a polynomial like x[1]*s*(x[2]+3x[2])*s*(x[2]+3x[2])*s*x[1] which won't simplify away.
Activity
blegat commentedon Nov 9, 2026
You cannot mix commutative and noncommutative variables. The error message should be improved, thanks for reporting this
freemin7 commentedon Nov 9, 2026
Why is that?
I see it is not compatible with the current code. Are there some principled objections against doing that (with another polynomial implementation)?