thread240-291259 in 2011 never arrived at an elegant solution. I think this is such a solution, using two analog multiplies:
If C1, S1 are the cosine and sine outputs of potentiometer 1, and C2, S2 are from pot 2, then
C1 * S2 - S1 * C2 = sine of error angle.
Similarly,
S1 * S2 + C1 * C2 =...