I'm looking at the wolframalpha residue calculator for the following equation: $$\frac{\tan(z)+2}{4z^2+\pi z}$$ which gives me the residue: $2/\pi $ for Root 1 which I found, but it also says residue: $-1/\pi$ for Root 2.
Root 1: $z=0$
Root 2: $z=-\pi/4$
If you insert Root 2 into the equation. $\frac{\tan(z)+2}z$ you get the following: $\frac{\tan(-\pi/4)+2}{-\pi/4}$
The curious thing is that I found the residue to be $-4/\pi$ and not $-1/\pi$ for Root 2.
Is there a step that I am missing or is wolframalpha wrong in this case?
Link to wolframalpha residue calculator: https://www.wolframalpha.com/widgets/gallery/view.jsp?id=186fb23a33995d91ce3c2212189178c8