Closed stevengj closed 1 year ago
I thought this was supported, but then this integral should give 2πi by the residue theorem:
julia> quadgk(z -> cos(z)/z, 1, im, -1, -im) (0.50046301807924 + 4.71238898038469im, 4.027482497221434e-9)
and the result looks clearly wrong. 😢
Oh, nevermind, I forgot to close the contour by ending up back at z=1:
julia> quadgk(z -> cos(z)/z, 1, im, -1, -im, 1) (0.0 + 6.283185307179587im, 5.369976662961913e-9)
I thought this was supported, but then this integral should give 2πi by the residue theorem:
and the result looks clearly wrong. 😢