phi phi2 theta theta2 solver