I'm trying to integrate a trigonometric expression as
Integrate[Cos[2 t] Cos[3 t] Cos[4 t] Cos[5 t] Sin[2 t] Sin[3 t], {t, 0, 2 Pi}]
The final results is correct (which is 0), but it takes a very long time (about 1100 seconds), and it returns some output messages such as:
N::meprec : Internal precision limit $MaxExtraPrecision = 50.` reached while evaluating -\[Pi]+10 ArcTan[Sqrt[10-2 Power[<<2>>]]/(5+Sqrt[5])].
N::meprec : Internal precision limit $MaxExtraPrecision = 50.` reached while evaluating -\[Pi]+10 ArcTan[Sqrt[10-2 Power[<<2>>]]/(5+Sqrt[5])].
LessEqual::meprec : Internal precision limit $MaxExtraPrecision = 50.` reached while evaluating -(1/5) Abs[-\[Pi]+10 ArcTan[Sqrt[Plus[<<2>>]]/Plus[<<2>>]]].
PossibleZeroQ::ztest1 : Unable to decide whether numeric quantity -(\[Pi]/5)+I (Log[1-(I Sqrt[Plus[<<2>>]])/Plus[<<2>>]]-Log[1+I Power[<<2>>] Power[<<2>>]]) is equal to zero. Assuming it is.
In the end, I used TrigReduce
to process this expression first then Integrate
it (and got the result very fast).
But I am curious why the original version takes so long.
Trace[Integrate[ Cos[2 t] Cos[3 t] Cos[4 t] Cos[5 t] Sin[2 t] Sin[3 t], {t, 0, 2 Pi}], _PossibleZeroQ, TraceInternal -> True]
to see what's causing the warning. Determining whether something is zero can be difficult. It may or may not have to do with the problem. $\endgroup$TraceInternal
output is really hard to read, and I'm not sure I can find the reason from it, anyway thanks for the help (^_^) $\endgroup$