I have Residue calculation that depends on a parameter r, for which I assume
$Assumptions = {r > 0};
I'm interested in the residue of the function
$\frac{1}{\left(z^{4/3}+\left(-1\right)^{1/3}r^{4/3}\right)\left(z^{2}-r^{2}\right)}$
at $z=-r$.
The calculation is:
Residue[1/((z^(4/3) + Power[-1, (3)^-1] r^(4/3)) (z^2 -
r^2)), {z, -r}] // Simplify
ComplexInfinity
However, If I first assign a value to r and then take the Residue
Residue[1/((z^(4/3) + Power[-1, (3)^-1] r^(4/3)) (z^2 - r^2)) /.
r -> 1, {z, -1}]
1/4 (-1)^(2/3)
The output is finite.
What am I missing? Thanks.
Edit 5.4.18
From the comment section of a different post of mine I learned that Residue in Mathematica versions prior to 11.1 may be buggy. Switching to 11.2, now I get:
$Assumptions = {r > 0};
Residue[1/((z^(4/3) + Power[-1, (3)^-1] r^(4/3)) (z^2 - r^2)), {z, -r}]
Residue[1/((z^(4/3) + Power[-1, (3)^-1] r^(4/3)) (z^2 - r^2)) /.
r -> 1, {z, -1}]
Residue[1/(((-1)^(1/3) r^(4/3) + z^(4/3)) (-r^2 + z^2)), {z, -r}]
Residue[1/(((-1)^(1/3) + z^(4/3)) (-1 + z^2)), {z, -1}]
Meaning, Residue fails and does not change the input in both cases.
Also, I decided to plot the complex function for $r=1$ using the function in celtschk's answer in a diffrent post, and got:
We can see that in $z=-r=-1$ there's a discontinuity, which may be consistent with a problematic Laurent series and the inexistence of the residue.
Still, if I remove the assumption that $r>0$, Residue returns the previously problematic output:
$Assumptions = {};
Residue[1/((z^(4/3) + Power[-1, (3)^-1] r^(4/3)) (z^2 -
r^2)), {z, -r}] // Simplify
-(1/(-2 (-r)^(7/3) + 2 (-1)^(1/3) r^(7/3)))

z=-rso it's hard to say whatResiduemight come up with in that situation. – Daniel Lichtblau Apr 03 '18 at 14:28CubeRootof the Wolfram language. It gives to me zero with this codeRefine[Residue[1/((z^(4/3) - r^(4/3)) (z^2 - r^2)), {z, -r}], r > 0]. Well, usingPoweryou probably will get the principal value of the cube roots of unity. – Masacroso Apr 03 '18 at 14:36Refine[Residue[ 1/((z^(4/3) + (-1)^(1/3) r^(4/3)) (z^2 - r^2)), {z, -r}], r > 0]it gives this result-(1/(2 (-(-r)^(1/3) + (-1)^(1/3) r^(1/3)) r^2))– Masacroso Apr 03 '18 at 14:41Piecewiseto handleIm[z] >= 0vs.Im[z] < 0. But I am not sure the two are actually different in a way that would preclude the existence of a residue. – Daniel Lichtblau Apr 04 '18 at 15:47CuberootfromPower. Read the documentation of each command. That isCuberoot[1]==1butPower[1,1/3]==E^(I Pi/3)– Masacroso Apr 04 '18 at 16:21