z/2 vs 2/z

On 05/11/15 00:32, Rob Beezer wrote:
My complex analysis is very rusty, so I can't tell if the problem here is
me or Sage:

z = var('z')
f = e^(z/2)
f.residue(z)

Result: 0

x = var('x')
g = e^x
t = g.taylor(x, 0, 5)
t(x = 2/z)

Result: 2/z + 2/z^2 + 4/3/z^3 + 2/3/z^4 + 4/15/z^5 + 1

So the coefficient of 1/z is 2, and the residue should be 2?

Thanks,
Rob




--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to