# This file converts the two complex potentials chi(z1), theta(z1) into a real Airy stress function phi(x,y) in Cartesian coordinates. chib:=subs({z1=z2,I=-I},chi); thetab:=subs({z1=z2,I=-I},theta); g2:=chi/2; g1:=(1/2)*int(theta,z1); g2b:=subs({z1=z2,I=-I},g2); g1b:=subs({z1=z2,I=-I},g1); phi:=simplify(subs({z1=x+I*y,z2=x-I*y},g1+g1b+z1*g2b+z2*g2));