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

linsolve gives odd result if symbols are duplicated #23855

Closed
smichr opened this issue Jul 29, 2022 · 1 comment · Fixed by #23872
Closed

linsolve gives odd result if symbols are duplicated #23855

smichr opened this issue Jul 29, 2022 · 1 comment · Fixed by #23872
Labels
good first issue See the "Easy to Fix" label. solvers

Comments

@smichr
Copy link
Member

smichr commented Jul 29, 2022

>>> linsolve([x-1],x)
{(1,)}
>>> linsolve([x-1],x,y)
{(1, y)}
>>> linsolve([x-1],x,x)
{(x + 1, x + 1)}  <---------- ?
@smichr smichr added solvers good first issue See the "Easy to Fix" label. labels Jul 29, 2022
@smichr
Copy link
Member Author

smichr commented Jul 30, 2022

first issue hit: see nonlinsolve and raise an error for duplicate symbols in the same way

skirpichev added a commit to diofant/diofant that referenced this issue Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue See the "Easy to Fix" label. solvers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant