The spherical expansion method and Leaver's method give different results when gamma is complex.
In = SpinWeightedSpheroidalHarmonicS[-2, 2, 2, 1+1.5 I, Method->{"SphericalExpansion", NumTerms->50}][\[Pi]/2, 0]
Out = 0.0635056-0.0790533 I
In = SpinWeightedSpheroidalHarmonicS[-2, 2, 2, 1+1.5 I, Method->{"Leaver", NumTerms->50}][\[Pi]/2, 0]
Out = 0.0633973-0.0897504 I
This is partially caused by the fact that the computation of the norm in Leaver's method assumes gamma is real
This method can be adapted to work for complex gamma by replacing \[Gamma] with Re[\[Gamma]] and Sum[an[j]an[i-nmin-j] with Sum[Conjugate[an[j]]an[i-nmin-j]. This fixes the normalization, but there still seems to be a difference in phase.
spherical = SpinWeightedSpheroidalHarmonicS[-2, 2, 2, 1 + 1.5 I, Method -> {"SphericalExpansion", NumTerms -> 50}][\[Pi]/2, 0]
leaver = SpinWeightedSpheroidalHarmonicS[-2, 2, 2, 1 + 1.5 I, Method -> {"Leaver", NumTerms -> 50}][\[Pi]/2, 0]
In = Abs[spherical]
Out = 0.101402
In = Abs[leaver]
Out = 0.101402
In = Arg[spherical]
Out = -0.894031
In = Arg[leaver]
Out = -0.443627
The spherical expansion method and Leaver's method give different results when gamma is complex.
This is partially caused by the fact that the computation of the norm in Leaver's method assumes gamma is real
https://github.com/BlackHolePerturbationToolkit/SpinWeightedSpheroidalHarmonics/blob/ced936f5fe4085b57f595ff23e028b63a790983d/Kernel/SpinWeightedSpheroidalHarmonics.m#L410C1-L431
This method can be adapted to work for complex gamma by replacing
\[Gamma]
withRe[\[Gamma]]
andSum[an[j]an[i-nmin-j]
withSum[Conjugate[an[j]]an[i-nmin-j]
. This fixes the normalization, but there still seems to be a difference in phase.