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
trigsimp takes forever on trig expressions with high degree polynomials #17780
Comments
It's stuck trying to factor this enormous expression
I had thought that it was fu, not trigsimp, that had this issue. |
I think this is the same issue as #7705, though with a much simpler repro. |
Would including fu as part of the default in trigsimp, similar to how combined uses matching and groebner, help? In this case and other cases like #17633 fu does the right thing. |
I'm not clear why fu isn't the default in trigsimp. I think there is a good reason for it, but I don't know if it is written down somewhere. |
There are times when the current default (matching) works better than fu:
It seems to me that trigsimp should try both matching and fu, and take the better of the two results. |
never finishes whereas
evaluates instantly. Is trigsimp is getting stuck trying to apply the trig sum formula?
The text was updated successfully, but these errors were encountered: