12.5 Computing time 165
trust the solution of a system of equations ever again? We clearly need
to recognize ill-conditioning when we see it.
Acommon way of recognizing an ill-conditioned system of equations
is to calculate the determinant of the left-hand-side matrix. In this case
it is −0.01. An ill-conditioned matrix always has a determinant whose
value is small compared with the general size of its elements. Another,
related, symptom is that the inverse matrix has very large elements. In
this case, the inverse is
−1440 3770
890 −2330
. (12.30)
Since the inverse matrix features in the formula (12.9) for calculat-
ing the variance–covariance matrix, an ill-conditioned normal matrix of
least squares automatically leads to very large variances for the derived
parameters.
In an extreme case, the determinant of the left-hand-side matrix may
be zero. The matrix is then said to be singular and the equations no
longer have a unique solution. They may have an infinite number of
solutions or no solution at all. Physically, this means the equations do
not contain the information required to evaluate the parameters. If the
information is not there, there is no way of getting it from the equations.
To make progress, it is necessary either to remove the parameters that
are not defined by the observations, or to add new equations to the
system so that all the parameters are defined. There are a number of
ways of producing a singular matrix in crystallographic least-squares
refinement. Easy ways are to refine parameters that should be fixed by
symmetry, or to refine all atomic positional parameters in a polar space
group: the symmetry does not define the origin along the polar axis, so
the atomic positions in this direction can have only relative values.
12.5 Computing time
Most computing time in X-ray crystallography is spent on the least-
squares refinement of the crystal structure. An appreciation of where
this time goes may help crystallographers usetheir computing resources
more efficiently.
The observational equations are mainly the structure-factor
equations, e.g.
N
j=1
f
j
exp[2πi(hx
j
+ ky
j
+ lz
j
)]
2
=
|
F
o
(hkl)
|
2
, (12.31)
which contain the atomic positional parameters for N atoms, and will
usually also contain the atomic displacement parameters in addition to
occupancy factors, scale factors etc. There will be as many equations as