Computation of sph.