J. Appl. Cryst. (2002), 35, 168-174. [ doi:10.1107/S0021889802000249 ]
Although non-merohedrally twinned crystal structures can normally be solved without difficulty, problems usually arise during refinement. Careful analysis of poorly fitting data reveals that they belong predominantly to certain distinct zones in which |Fo|2 is systematically larger than |Fc|2. In the computer program ROTAX, a set of data with the largest values of (|Fo2| – |Fc2|)/u(|Fo2|) is identified and their indices transformed by rotations or roto-inversions about possible direct- and reciprocal-lattice directions. Matrices that transform the indices of the poorly fitting data to integers are identified as possible twin laws.