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ourthRoot=x/.roots[[4]];(*Compute4*ArcTanofthethirdandfourthroots*)resultThirdRoot=4*ArcTan[thirdRoot];resultFourthRoot=4*ArcTan[fourthRoot];(*Displaytheresults*){resultThirdRoot,resultFourthRoot}
Out[]=
-4ArcTan+++,4ArcTan+++
4m0
m1+2m2
3m1
m1+2m2
2m2
m1+2m2
2
2
2+3m0m1++2m0m2+m1m2
2
m0
2
m1
m1+2m2
4m0
m1+2m2
3m1
m1+2m2
2m2
m1+2m2
2
2
2+3m0m1++2m0m2+m1m2
2
m0
2
m1
m1+2m2
In[]:=
Limit[DL[ϕ,m0,m1,m2],ϕ->#,Assumptions->Element[{m0,m1,m2},PositiveIntegers]]&/@{0,π,2π}
Out[]=
{0,0,0}