In the density calculating apparatus of the present invention, it is preferable that the density calculation section uniquely gives a solution x???, which satisfies norm minimal solution and a least squares solution, of an exact solution obtained by solving a determinant Ax=y (wherein, A is a matrix, x is a vector representing a density difference, and y is a vector representing a difference of a