Skip to content

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

@swankun

Description

@swankun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions