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
exception sympy.polys.polyerrors.PolificationFailed: Cannot construct polynomials using integrate in sympy 1.10.1 #23949
Comments
I tried this with latest master and while it took some time (maybe 10 minutes) an answer was returned: In [1]: >>> from sympy import *
...: >>> F, G, H, a, b, c, d, e, f, g, h, i, k, m, n, p, r, s, t, x=symbols('F G H a b c d e f g h
...: i k m n p r s t x')
...: >>> integrand=((-x*exp(exp(5))*ln(x)+(x**2+13*x+42)*exp(exp(5)))*exp(ln(x)/(6+x))+((-2*x**4-2
...: 4*x**3-73*x**2-12*x-36)*exp(x**2)+(-x**2-12*x-36)*exp(2))*exp(exp(5)))/(x**2+12*x+36)
...: >>> integrate(integrand,x)
Out[1]:
log(x)
⎛ 2⎞ ⎛ 5⎞ ────── ⎛ 5⎞ ⎛ 5⎞
⎝x ⎠ ⎝ℯ ⎠ x + 6 ⎝ℯ ⎠ 2 ⎝ℯ ⎠
- x⋅ℯ ⋅ℯ + x⋅ℯ ⋅ℯ - x⋅ℯ ⋅ℯ Can you try with the master branch from git? Alternatively you could try the 1.11rc1 pre-release which can be installed with:
|
I do wonder if it should be so slow though. Maybe it's possible to improve that. |
"I do wonder if it should be so slow though. Maybe it's possible to improve that." 10 minutes seems a little long, I agree. It will be nice if performance is improved, yes. But this is not as important as getting correct results and avoiding exceptions. Fyi, Mathematica 13.1 does this in 0.1 seconds
Gives
|
This looks the same apart from The |
The profiler shows what takes the time. Looks like the main thing is
|
I am getting this error. I do not know if this is known issue already or not.
Gives
Versions
The text was updated successfully, but these errors were encountered: