That's the basic strategy, but you want a Taylor series in z
and zc
for w
, so let's try this:
Normal[
Series[gamma1[(z + zc)/2, -(1/2) I (z - zc)] +
I gamma2[(z + zc)/2, -(1/2) I (z - zc)], {z, 0, 3}, {zc, 0, 3}]]
(* ((-0.0326007 - 0.0046403 I) e2 - (0.0369689 +
0.0632291 I) e2 eps + (0.0197006 -
0.0506049 I) e2 eps^2 + (0.0128245 -
0.00395608 I) e2 eps^3) z^3 + ((-0.0533697 +
0.0831308 I) e2 - (0.122053 -
0.0838872 I) e2 eps - (0.0964865 -
0.0524172 I) e2 eps^2 - (0.0400624 -
0.00400908 I) e2 eps^3) z^2 zc + ((0.0533697 +
0.0831308 I) e2 + (0.122053 +
0.0838872 I) e2 eps + (0.0964865 +
0.0524172 I) e2 eps^2 + (0.0400624 +
0.00400908 I) e2 eps^3) z zc^2 + ((0.0326007 -
0.0046403 I) e2 + (0.0369689 -
0.0632291 I) e2 eps - (0.0197006 +
0.0506049 I) e2 eps^2 - (0.0128245 +
0.00395608 I) e2 eps^3) zc^3 *)
But this isn't exactly what you want, it has terms like z^2 zc^2
, so if you want it to match your expression exactly, you should use the SeriesCoefficient
function.
wz = gamma1[(z + zc)/2, -(1/2) I (z - zc)] +
I gamma2[(z + zc)/2, -(1/2) I (z - zc)];
Total[SeriesCoefficient[
wz, {z, 0, #1}, {zc, 0, #2}] z^#1 zc^#2 & @@@ {{3, 0}, {2,
1}, {1, 2}, {0, 3}}]
(* (0.0128245 -
0.00395608 I) ((-2.21927 - 1.04643 I) e2 - (1.24345 +
5.31391 I) e2 eps + (2.51416 - 3.17039 I) e2 eps^2 + (1. +
0. I) e2 eps^3) z^3 + ((-0.0533697 +
0.0831308 I) e2 - (0.122053 -
0.0838872 I) e2 eps - (0.0964865 -
0.0524172 I) e2 eps^2 - (0.0400624 -
0.00400908 I) e2 eps^3) z^2 zc + ((0.0533697 +
0.0831308 I) e2 + (0.122053 +
0.0838872 I) e2 eps + (0.0964865 +
0.0524172 I) e2 eps^2 + (0.0400624 +
0.00400908 I) e2 eps^3) z zc^2 + ((0.0326007 -
0.0046403 I) e2 + (0.0369689 -
0.0632291 I) e2 eps - (0.0197006 +
0.0506049 I) e2 eps^2 - (0.0128245 +
0.00395608 I) e2 eps^3) zc^3 *)