I have two real polynomials that depend in variables (xi1, xi2)
and parameters (eps, e2)
. I apply the following complexification:
w(xi1, xi2, eps, e2) = gamma1(xi1, xi2, eps, e2) + I gamma2(xi1, xi2, eps, e2)
Now I wish to define the variable z = xi1 + I xi2
, and find a neat expression for w
in terms of z
and it's conjugate, zc
, as follows:
w(z, zc) = c30 z^3 + c21 z^2 zc+ c12 z zc^2 + c03 zc^3 + o(3)
In order to find the coefficients.
How may I ask this to Mathematica?
---------------------------- actual code -----------------------
gamma1[xi1,xi2,eps,e2]=(0. - 1.72945 I) e2 (-0.3567 xi1 + 0.229 xi2 + 0.7398 (-0.0423 eps xi1 + 0.4227 eps xi2))^3 - (0. + 0.5 I) (eps (0.5929 xi1 - 0.3806 xi2 - 1.2296 (-0.0423 eps xi1 + 0.4227 eps xi2)) + 38.4563 e2 (-0.3567 xi1 + 0.229 xi2 + 0.7398 (-0.0423 eps xi1 + 0.4227 eps xi2))^3);
gamma2[xi1,xi2,eps,e2]=(-1.72945 + 0. I) e2 (-0.3567 xi1 + 0.229 xi2 + 0.7398 (-0.0423 eps xi1 + 0.4227 eps xi2))^3 + (0.5 + 0. I) (eps (0.5929 xi1 - 0.3806 xi2 - 1.2296 (-0.0423 eps xi1 + 0.4227 eps xi2)) + 38.4563 e2 (-0.3567 xi1 + 0.229 xi2 + 0.7398 (-0.0423 eps xi1 + 0.4227 eps xi2))^3);
w[xi1, xi2, eps, e2] = gamma1[xi1, xi2, eps, e2] + I gamma2 [xi1, xi2, eps, e2];