SetDirectory["/www/user/fdahl/papers/Conjugation/"];
<<kappaLib.m
<<Petrov.m

Class XVI: (2 1bar(1) 1bar(1))

B=(({{0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0}}));

V=(({{ lam1, 1, 0, 0, 0, 0}, {0, lam1, 0, 0, 0, 0}, {0, 0, sigma1, tau1, 0, 0}, {0, 0, -tau1, sigma1, 0, 0}, {0, 0, 0, 0,  sigma2, tau2}, {0, 0, 0, 0, -tau2,  sigma2}}));

Eigenvalues[V]

W=(({{0, eps1, 0, 0, 0, 0}, {eps1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0}, {0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1}, {0, 0, 0, 0, 1, 0}}));

eps1 can be +1 or -1:

Eigenvalues[W]

(* Permutation 2,5 with leading B in FindSPermutations.m *)
S=(({{0, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 1}, {eps1, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0}}));

Check that S is in the set mathcal(S)

Transpose[S].B.S==W

Compute result

res=S.V.Inverse[S];
res//MatrixForm

Petrov[res]

Export notebook as .pdf

NotebookPrint[SelectedNotebook[],"/www/user/fdahl/papers/Conjugation/notebooks/ClassXVI.pdf"]