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

Deadlock situation with function expressions #53

Open
lebesgueunmeasure opened this issue Jan 9, 2022 · 2 comments
Open

Deadlock situation with function expressions #53

lebesgueunmeasure opened this issue Jan 9, 2022 · 2 comments

Comments

@lebesgueunmeasure
Copy link

The Reduce.jl, the following works
using Reduce
Reduce.expand(“3x+2y+2.12x+3.2y”)

However if I try the following
expand(“f(X,Y)+2g(X1,X2,X2)+2f(X,Y)”)
it gets into an infinite loop. If I interrupt once, and try again then it comes out with a prompt
“Type Y or N?;\n3f(x,y) + 2g(x1,x2,x2)”

and on the third time, it works well.
“3f(x,y) + 2g(x1,x2,x2)”
Looking into the code, it appears that there is an error check which prompts the Type Y or N? Is this an intended check? Can this be fixed?
This is a nice package that helps in quite a bit of symbolic expression simplifications. It would be nice to have this fixed. Or any other suggestions to work around it (instead of manually interrupting this 2 times).

Thanks for the help/suggestions

using Reduce expand("3x+2y+2.12x+3.2y") expand("f(X,Y)+2g(X1,X2,X2)+2f(X,Y)")

@chakravala
Copy link
Owner

Thanks for the report, I will look into the bug sometime if I can, but I have a job at Wolfram Research now along with various other personal priorities. Indeed, if there is a prompt for Y or N, then that is something the parser does not handle as of yet.

@lebesgueunmeasure
Copy link
Author

Thanks for the report, I will look into the bug sometime if I can, but I have a job at Wolfram Research now along with various other personal priorities. Indeed, if there is a prompt for Y or N, then that is something the parser does not handle as of yet.

Thank you for your attention. Appreciate your help. It would be a nice fix as and when you get time. Cheers.

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

No branches or pull requests

2 participants