TypedPolynomials.jl icon indicating copy to clipboard operation
TypedPolynomials.jl copied to clipboard

monomials(vars::Tuple, degs) throws ArgumentError for 10+ variables

Open swankun opened this issue 3 years ago • 1 comments

I'm trying to create a vector of monomials for many variables. It fails if the number of variables exceeds a single digit (>9) with the error ArgumentError: Variables must be in order

MWE

using MultivariatePolynomials  # v0.3.12
using TypedPolynomials # v0.2.8

@polyvar x[1:10]
monomials(x, 1:2) # ERROR: ArgumentError: Variables must be in order
monomials(x[10:-1:9], 1:2) # This unexpectedly works

I'm using Julia 1.5.3

swankun avatar Mar 24 '21 16:03 swankun

Seems to be a duplicate of #66

blegat avatar Mar 24 '21 23:03 blegat