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

ArgumentError: There should be as many variables as exponents #141

Closed
kbarros opened this issue Sep 6, 2023 · 1 comment · Fixed by #142
Closed

ArgumentError: There should be as many variables as exponents #141

kbarros opened this issue Sep 6, 2023 · 1 comment · Fixed by #142

Comments

@kbarros
Copy link

kbarros commented Sep 6, 2023

Failure on the last line below seems surprising.

using DynamicPolynomials
@polyvar x y z

subs(x^2, x => z^2) # z⁴
subs(x^2 + y^2, x => z) # z² + y²
subs(x^2 + y^2, x => 1z^2) # y² + z⁴
subs(x^2 + y^2, x => z^2) # ArgumentError: There should be as many variables as exponents
@blegat
Copy link
Member

blegat commented Sep 6, 2023

Thanks for reporting this, it should be fixed in #142

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

Successfully merging a pull request may close this issue.

2 participants