You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
integral(1/(a + sin(x)), x, 0, 2 pi) does not finish: the limits at a break are taken without the cache and budget of the limits at a bound #2658
simplify(integral(1/(a + sin(x)), x, 0, 2 pi)) does not finish within the probe's 20 s. This happens on master and on #2651's branch. Its value is 2 pi / sqrt(a^2 - 1) for a > 1, and the integral diverges for |a| <= 1. With no assumption on a, the honest answer is to leave it unevaluated, and that should be fast.
The antiderivative is found in 0.4 s. It is a piecewise on a. Each case has a break at the pole of tan(x/2) at pi, and the one-sided limits there are undecided after 0.15–3.4 s each:
eval of the integral declines after 4.8 s. Simplify evaluates the integral again for every candidate. The limits at a break are taken with neither the cache nor the budget that the limits at a bound have (LimitAtTheBound), so every candidate pays the whole cost again.
Activity