Skip to content

How are variables attributed to polynomials? #79

Open
@tweisser

Description

@tweisser
using DynamicPolynomials

@polyvar x[1:4]

polys = [1 0 1 0; 0 1 0 1]*x
variables.(polys)
"""
2-element Array{Array{PolyVar{true},1},1}:
 [x₁, x₃]
 [x₁, x₂, x₃, x₄]
"""

Why is the first polynomial a polynomial in two variables whereas the second polynomial has all four variables?

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