Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to query the ordering #150

Open
sumiya11 opened this issue Feb 14, 2024 · 2 comments
Open

How to query the ordering #150

sumiya11 opened this issue Feb 14, 2024 · 2 comments

Comments

@sumiya11
Copy link
Contributor

Hi,

Thanks for implementing monomial orderings, I think it is a nice feature.
A question: is it possible to query the ordering on existing monomials?

Currently, I have

using DynamicPolynomials
@polyvar x y z monomial_order=LexOrder
ordering(x)

ERROR: MethodError: no method matching ordering(::Variable{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, LexOrder})
Stacktrace:
 [1] top-level scope
   @ REPL[26]:1

with

  [102ac46a] MultivariatePolynomials v0.5.4
  [7c1d4256] DynamicPolynomials v0.5.3

Originally from sumiya11/Groebner.jl#116

@sumiya11
Copy link
Contributor Author

And, for completeness, I have

using DynamicPolynomials
@polyvar x y z monomial_order=LexOrder
ordering(x)
# returns
GradedLex()

with

⌃ [102ac46a] MultivariatePolynomials v0.5.3
  [7c1d4256] DynamicPolynomials v0.5.3

@blegat
Copy link
Member

blegat commented Feb 14, 2024

Thanks for letting me know, this was fixed in #146 but I forgot to make a new release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants